Last active
December 15, 2016 20:54
-
-
Save mgagne/ee6d8f6f9e426195bcf94ce28fb22449 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
set -eux | |
rm -rf .puppet | |
mkdir -p .puppet/etc | |
mkdir -p .puppet/var/yaml/facts | |
# bundle exec rake spec_prep | |
cat > "./.puppet/var/yaml/facts/node01.keystone.cloud.example.org.yaml" <<'EOF' | |
--- !ruby/object:Puppet::Node::Facts | |
name: node01.keystone.cloud.example.org | |
values: | |
hostname: node01 | |
domain: keystone.cloud.example.org | |
fqdn: node01.keystone.cloud.example.org | |
environment: privatestack | |
operatingsystem: Ubuntu | |
operatingsystemrelease: '14.04' | |
kernel: Linux | |
osfamily: Debian | |
lsbdistid: ubuntu | |
lsbdistcodename: trusty | |
ipaddress: '10.0.0.10' | |
processorcount: '2' | |
memorysize: '2048' | |
concat_basedir: /tmp/concat | |
expiration: 2030-12-31 23:59:59.000000 +00:00 | |
EOF | |
bundle exec puppet master \ | |
--modulepath ./spec/fixtures/modules \ | |
--manifestdir ./manifests \ | |
--hiera_config ./spec/fixtures/hiera.yaml \ | |
--yamldir ./.puppet/var/yaml \ | |
--confdir ./.puppet/etc \ | |
--vardir ./.puppet/var \ | |
--masterlog ./.puppet/master.log \ | |
--pluginsync true \ | |
--trace \ | |
--color false \ | |
--disable_warnings=deprecations \ | |
--compile node01.keystone.cloud.example.org |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
source 'https://rubygems.org' | |
gem 'rake', '~>10.1.0' | |
gem 'librarian-puppet-simple', | |
:git => 'git://github.com/bodepd/librarian-puppet-simple.git' | |
group :development, :test do | |
gem 'mustache', '0.99.8' | |
gem 'json_pure', '2.0.1' | |
gem 'safe_yaml', '~> 1.0.4' | |
gem 'puppet', '~>3.7.0' | |
gem 'puppet-lint', '~>0.3.2' | |
gem 'puppetlabs_spec_helper', '~>0.5.0' | |
gem 'ci_reporter_rspec', '~>1.0.0' | |
gem 'fpm' | |
gem 'rspec-puppet', '~>2.0.0' | |
gem 'parallel_tests', '~>2.2.1' | |
# required for catalog compilation | |
gem 'activerecord', '3.0.1' | |
gem 'sqlite3' | |
end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment