diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml new file mode 100644 index 0000000..3445d4f --- /dev/null +++ b/.github/workflows/build.yml @@ -0,0 +1,28 @@ +--- +name: Build images + +on: + pull_request: {} + push: + branches: + - master + +jobs: + rubocop: + env: + BUNDLE_WITHOUT: release + BEAKER_HYPERVISOR: docker + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v4 + - name: Install Ruby ${{ matrix.ruby }} + uses: ruby/setup-ruby@v1 + with: + ruby-version: "3.2" + bundler-cache: true + - name: Run beaker + run: bundle exec beaker --provision --dry-run --hosts ubuntu2204-64 + - name: List images + run: docker images + - name: List container + run: docker ps diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..4257d1c --- /dev/null +++ b/.gitignore @@ -0,0 +1,3 @@ +.vendor/ +.bundle/ +Gemfile.lock diff --git a/Gemfile b/Gemfile new file mode 100644 index 0000000..2be0251 --- /dev/null +++ b/Gemfile @@ -0,0 +1,6 @@ +source ENV['GEM_SOURCE'] || 'https://rubygems.org' + +gem 'beaker-hostgenerator' +gem 'puppet_metadata' +gem 'json' +gem 'beaker' diff --git a/Rakefile b/Rakefile new file mode 100644 index 0000000..e69de29 diff --git a/metadata.json b/metadata.json new file mode 100644 index 0000000..230406b --- /dev/null +++ b/metadata.json @@ -0,0 +1,53 @@ +{ + "author": "Vox Pupuli", + "license": "MIT", + "name": "puppet-example", + "version": "0.2.1", + "summary": " An example Puppet repository to test out automation and coding styles", + "source": "https://github.com/voxpupuli/puppet-example", + "dependencies": [ + { + "name": "puppetlabs-stdlib", + "version_requirement": ">= 4.25.0 < 9.0.0" + } + ], + "requirements": [ + { + "name": "puppet", + "version_requirement": ">= 7.0.0 < 9.0.0" + } + ], + "operatingsystem_support": [ + { + "operatingsystem": "ArchLinux" + }, + { + "operatingsystem": "CentOS", + "operatingsystemrelease": [ + "7", + "8" + ] + }, + { + "operatingsystem": "Debian", + "operatingsystemrelease": [ + "10", + "11" + ] + }, + { + "operatingsystem": "RedHat", + "operatingsystemrelease": [ + "7", + "8" + ] + }, + { + "operatingsystem": "Ubuntu", + "operatingsystemrelease": [ + "18.04", + "20.04" + ] + } + ] +}