onceover 3.20.0 → 3.22.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (150) hide show
  1. checksums.yaml +4 -4
  2. data/.devcontainer/devcontainer.json +31 -0
  3. data/.github/workflows/release.yaml +24 -0
  4. data/.github/workflows/tests.yaml +5 -8
  5. data/.gitignore +0 -1
  6. data/.rubocop.yml +1 -1
  7. data/.vscode/extensions.json +4 -0
  8. data/Gemfile +12 -0
  9. data/README.md +46 -2
  10. data/Rakefile +1 -0
  11. data/cucumber.yml +1 -0
  12. data/factsets/Windows_Server-2008r2-64.json +184 -184
  13. data/factsets/Windows_Server-2012r2-64.json +165 -165
  14. data/factsets/windows-10-64.json +104 -104
  15. data/features/step_definitions/run.rb +4 -0
  16. data/features/zzz_run.feature +2 -8
  17. data/lib/onceover/beaker/spec_helper.rb +8 -8
  18. data/lib/onceover/cli/run.rb +1 -0
  19. data/lib/onceover/cli/show.rb +1 -1
  20. data/lib/onceover/controlrepo.rb +62 -34
  21. data/lib/onceover/deploy.rb +6 -3
  22. data/lib/onceover/rspec/formatters.rb +2 -4
  23. data/lib/onceover/runner.rb +2 -1
  24. data/lib/onceover/test.rb +1 -1
  25. data/lib/onceover/testconfig.rb +4 -2
  26. data/onceover.gemspec +6 -11
  27. data/spec/fixtures/controlrepos/caching/Puppetfile +17 -17
  28. data/spec/fixtures/controlrepos/puppet_controlrepo/.atom-build.json +9 -0
  29. data/spec/fixtures/controlrepos/puppet_controlrepo/.gitignore +5 -0
  30. data/spec/fixtures/controlrepos/puppet_controlrepo/.ruby-version +1 -0
  31. data/spec/fixtures/controlrepos/puppet_controlrepo/.travis.yml +13 -0
  32. data/spec/fixtures/controlrepos/puppet_controlrepo/Gemfile +22 -0
  33. data/spec/fixtures/controlrepos/puppet_controlrepo/Jenkinsfile +50 -0
  34. data/spec/fixtures/controlrepos/puppet_controlrepo/Puppetfile +102 -0
  35. data/spec/fixtures/controlrepos/puppet_controlrepo/README.md +4 -0
  36. data/spec/fixtures/controlrepos/puppet_controlrepo/Rakefile +6 -0
  37. data/spec/fixtures/controlrepos/puppet_controlrepo/data/common.yaml +558 -0
  38. data/spec/fixtures/controlrepos/puppet_controlrepo/data/datacenter/melbourne.yaml +12 -0
  39. data/spec/fixtures/controlrepos/puppet_controlrepo/data/datacenter/singapore.yaml +12 -0
  40. data/spec/fixtures/controlrepos/puppet_controlrepo/data/environments/development.yaml +3 -0
  41. data/spec/fixtures/controlrepos/puppet_controlrepo/data/environments/production.yaml +3 -0
  42. data/spec/fixtures/controlrepos/puppet_controlrepo/data/size/vol.large.yaml +27 -0
  43. data/spec/fixtures/controlrepos/puppet_controlrepo/environment.conf +3 -0
  44. data/spec/fixtures/controlrepos/puppet_controlrepo/hiera.yaml +25 -0
  45. data/spec/fixtures/controlrepos/puppet_controlrepo/manifests/site.pp +11 -0
  46. data/spec/fixtures/controlrepos/puppet_controlrepo/scripts/code_manager_config_version.rb +19 -0
  47. data/spec/fixtures/controlrepos/puppet_controlrepo/scripts/config_version.rb +25 -0
  48. data/spec/fixtures/controlrepos/puppet_controlrepo/scripts/config_version.sh +12 -0
  49. data/spec/fixtures/controlrepos/puppet_controlrepo/scripts/count_changed_classes.rb +26 -0
  50. data/spec/fixtures/controlrepos/puppet_controlrepo/scripts/get_changed_classes.rb +26 -0
  51. data/spec/fixtures/controlrepos/puppet_controlrepo/site-modules/console/functions/user/token.pp +10 -0
  52. data/spec/fixtures/controlrepos/puppet_controlrepo/site-modules/console/manifests/init.pp +14 -0
  53. data/spec/fixtures/controlrepos/puppet_controlrepo/site-modules/console/manifests/user.pp +35 -0
  54. data/spec/fixtures/controlrepos/puppet_controlrepo/site-modules/deployments/lib/puppet/functions/deployments/generate.rb +15 -0
  55. data/spec/fixtures/controlrepos/puppet_controlrepo/site-modules/deployments/plans/signed_deployment.pp +126 -0
  56. data/spec/fixtures/controlrepos/puppet_controlrepo/site-modules/profile/facts.d/test.sh +2 -0
  57. data/spec/fixtures/controlrepos/puppet_controlrepo/site-modules/profile/files/artifactory/config_descriptor.xml +265 -0
  58. data/spec/fixtures/controlrepos/puppet_controlrepo/site-modules/profile/files/autosign.sh +23 -0
  59. data/spec/fixtures/controlrepos/puppet_controlrepo/site-modules/profile/files/hudson.tasks.Shell.xml +4 -0
  60. data/spec/fixtures/controlrepos/puppet_controlrepo/site-modules/profile/files/motd +4 -0
  61. data/spec/fixtures/controlrepos/puppet_controlrepo/site-modules/profile/files/polar_clock/index.html +198 -0
  62. data/spec/fixtures/controlrepos/puppet_controlrepo/site-modules/profile/manifests/apt.pp +9 -0
  63. data/spec/fixtures/controlrepos/puppet_controlrepo/site-modules/profile/manifests/aws_nodes.pp +54 -0
  64. data/spec/fixtures/controlrepos/puppet_controlrepo/site-modules/profile/manifests/base/aws.pp +9 -0
  65. data/spec/fixtures/controlrepos/puppet_controlrepo/site-modules/profile/manifests/base/rhel.pp +50 -0
  66. data/spec/fixtures/controlrepos/puppet_controlrepo/site-modules/profile/manifests/base/windows/hardening.pp +57 -0
  67. data/spec/fixtures/controlrepos/puppet_controlrepo/site-modules/profile/manifests/base/windows.pp +52 -0
  68. data/spec/fixtures/controlrepos/puppet_controlrepo/site-modules/profile/manifests/base.pp +79 -0
  69. data/spec/fixtures/controlrepos/puppet_controlrepo/site-modules/profile/manifests/cd4pe/artifactory.pp +64 -0
  70. data/spec/fixtures/controlrepos/puppet_controlrepo/site-modules/profile/manifests/cd4pe/connection.pp +95 -0
  71. data/spec/fixtures/controlrepos/puppet_controlrepo/site-modules/profile/manifests/cd4pe/haproxy.pp +65 -0
  72. data/spec/fixtures/controlrepos/puppet_controlrepo/site-modules/profile/manifests/cd4pe/replicated.pp +53 -0
  73. data/spec/fixtures/controlrepos/puppet_controlrepo/site-modules/profile/manifests/compile/balancer.pp +28 -0
  74. data/spec/fixtures/controlrepos/puppet_controlrepo/site-modules/profile/manifests/compile/master.pp +19 -0
  75. data/spec/fixtures/controlrepos/puppet_controlrepo/site-modules/profile/manifests/dns/host_record.pp +16 -0
  76. data/spec/fixtures/controlrepos/puppet_controlrepo/site-modules/profile/manifests/dns/server.pp +66 -0
  77. data/spec/fixtures/controlrepos/puppet_controlrepo/site-modules/profile/manifests/docker.pp +5 -0
  78. data/spec/fixtures/controlrepos/puppet_controlrepo/site-modules/profile/manifests/eyeunify/base.pp +43 -0
  79. data/spec/fixtures/controlrepos/puppet_controlrepo/site-modules/profile/manifests/eyeunify/core/database_connection.pp +42 -0
  80. data/spec/fixtures/controlrepos/puppet_controlrepo/site-modules/profile/manifests/eyeunify/core.pp +72 -0
  81. data/spec/fixtures/controlrepos/puppet_controlrepo/site-modules/profile/manifests/eyeunify/ctrl.pp +57 -0
  82. data/spec/fixtures/controlrepos/puppet_controlrepo/site-modules/profile/manifests/eyeunify/database.pp +32 -0
  83. data/spec/fixtures/controlrepos/puppet_controlrepo/site-modules/profile/manifests/eyeunify/exec.pp +11 -0
  84. data/spec/fixtures/controlrepos/puppet_controlrepo/site-modules/profile/manifests/file_sync/client.pp +165 -0
  85. data/spec/fixtures/controlrepos/puppet_controlrepo/site-modules/profile/manifests/file_sync/master_patch.pp +37 -0
  86. data/spec/fixtures/controlrepos/puppet_controlrepo/site-modules/profile/manifests/grafana/dashboard.pp +17 -0
  87. data/spec/fixtures/controlrepos/puppet_controlrepo/site-modules/profile/manifests/haproxy.pp +43 -0
  88. data/spec/fixtures/controlrepos/puppet_controlrepo/site-modules/profile/manifests/init.pp +3 -0
  89. data/spec/fixtures/controlrepos/puppet_controlrepo/site-modules/profile/manifests/jenkins/plugins.pp +87 -0
  90. data/spec/fixtures/controlrepos/puppet_controlrepo/site-modules/profile/manifests/jenkins.pp +65 -0
  91. data/spec/fixtures/controlrepos/puppet_controlrepo/site-modules/profile/manifests/jira/aio.pp +39 -0
  92. data/spec/fixtures/controlrepos/puppet_controlrepo/site-modules/profile/manifests/jira/app.pp +27 -0
  93. data/spec/fixtures/controlrepos/puppet_controlrepo/site-modules/profile/manifests/jira/db.pp +25 -0
  94. data/spec/fixtures/controlrepos/puppet_controlrepo/site-modules/profile/manifests/metrics/collectd/compile.pp +82 -0
  95. data/spec/fixtures/controlrepos/puppet_controlrepo/site-modules/profile/manifests/metrics/collectd.pp +28 -0
  96. data/spec/fixtures/controlrepos/puppet_controlrepo/site-modules/profile/manifests/metrics/dashboard.pp +28 -0
  97. data/spec/fixtures/controlrepos/puppet_controlrepo/site-modules/profile/manifests/mysql_server.pp +7 -0
  98. data/spec/fixtures/controlrepos/puppet_controlrepo/site-modules/profile/manifests/nginx.pp +24 -0
  99. data/spec/fixtures/controlrepos/puppet_controlrepo/site-modules/profile/manifests/polar_clock.pp +55 -0
  100. data/spec/fixtures/controlrepos/puppet_controlrepo/site-modules/profile/manifests/puppetmaster/api_auth.pp +82 -0
  101. data/spec/fixtures/controlrepos/puppet_controlrepo/site-modules/profile/manifests/puppetmaster/autosign.pp +33 -0
  102. data/spec/fixtures/controlrepos/puppet_controlrepo/site-modules/profile/manifests/puppetmaster/aws.pp +58 -0
  103. data/spec/fixtures/controlrepos/puppet_controlrepo/site-modules/profile/manifests/puppetmaster/tuning.pp +139 -0
  104. data/spec/fixtures/controlrepos/puppet_controlrepo/site-modules/profile/manifests/puppetmaster.pp +139 -0
  105. data/spec/fixtures/controlrepos/puppet_controlrepo/site-modules/profile/manifests/rvm.pp +13 -0
  106. data/spec/fixtures/controlrepos/puppet_controlrepo/site-modules/profile/manifests/sumologic.pp +11 -0
  107. data/spec/fixtures/controlrepos/puppet_controlrepo/site-modules/profile/manifests/sunburst/windows.pp +104 -0
  108. data/spec/fixtures/controlrepos/puppet_controlrepo/site-modules/profile/manifests/vagrant.pp +25 -0
  109. data/spec/fixtures/controlrepos/puppet_controlrepo/site-modules/profile/manifests/windows/webserver.pp +27 -0
  110. data/spec/fixtures/controlrepos/puppet_controlrepo/site-modules/profile/templates/cd4pe/connection_script.sh.epp +110 -0
  111. data/spec/fixtures/controlrepos/puppet_controlrepo/site-modules/profile/templates/controlrepo_deploy_jenkins_job.xml.epp +51 -0
  112. data/spec/fixtures/controlrepos/puppet_controlrepo/site-modules/profile/templates/dashboard.json.epp +403 -0
  113. data/spec/fixtures/controlrepos/puppet_controlrepo/site-modules/profile/templates/jenkins_secret_text.json.epp +1 -0
  114. data/spec/fixtures/controlrepos/puppet_controlrepo/site-modules/profile/templates/onceover_jenkins_job.xml.epp +51 -0
  115. data/spec/fixtures/controlrepos/puppet_controlrepo/site-modules/profile/templates/userdata.epp +17 -0
  116. data/spec/fixtures/controlrepos/puppet_controlrepo/site-modules/role/manifests/cd4pe.pp +29 -0
  117. data/spec/fixtures/controlrepos/puppet_controlrepo/site-modules/role/manifests/clock.pp +16 -0
  118. data/spec/fixtures/controlrepos/puppet_controlrepo/site-modules/role/manifests/compile/balancer.pp +5 -0
  119. data/spec/fixtures/controlrepos/puppet_controlrepo/site-modules/role/manifests/compile/master.pp +5 -0
  120. data/spec/fixtures/controlrepos/puppet_controlrepo/site-modules/role/manifests/eyeunify/aio.pp +10 -0
  121. data/spec/fixtures/controlrepos/puppet_controlrepo/site-modules/role/manifests/eyeunify/controller.pp +10 -0
  122. data/spec/fixtures/controlrepos/puppet_controlrepo/site-modules/role/manifests/eyeunify/database.pp +7 -0
  123. data/spec/fixtures/controlrepos/puppet_controlrepo/site-modules/role/manifests/eyeunify/exec.pp +6 -0
  124. data/spec/fixtures/controlrepos/puppet_controlrepo/site-modules/role/manifests/init.pp +3 -0
  125. data/spec/fixtures/controlrepos/puppet_controlrepo/site-modules/role/manifests/lb.pp +14 -0
  126. data/spec/fixtures/controlrepos/puppet_controlrepo/site-modules/role/manifests/metrics.pp +5 -0
  127. data/spec/fixtures/controlrepos/puppet_controlrepo/site-modules/role/manifests/mysql.pp +13 -0
  128. data/spec/fixtures/controlrepos/puppet_controlrepo/site-modules/role/manifests/windows/base.pp +5 -0
  129. data/spec/fixtures/controlrepos/puppet_controlrepo/site-modules/role/manifests/windows/webserver.pp +6 -0
  130. data/spec/fixtures/controlrepos/puppet_controlrepo/spec/.gitignore +5 -0
  131. data/spec/fixtures/controlrepos/puppet_controlrepo/spec/acceptance/nodesets/onceover-nodes.yml +94 -0
  132. data/spec/fixtures/controlrepos/puppet_controlrepo/spec/classes/test_spec.rb +8 -0
  133. data/spec/fixtures/controlrepos/puppet_controlrepo/spec/factsets/CentOS-7.0-64-master-2017.3.2.json +531 -0
  134. data/spec/fixtures/controlrepos/puppet_controlrepo/spec/factsets/CentOS-7.0-64-master.json +429 -0
  135. data/spec/fixtures/controlrepos/puppet_controlrepo/spec/factsets/CentOS-7.0-64.json +353 -0
  136. data/spec/fixtures/controlrepos/puppet_controlrepo/spec/factsets/Windows_Server-2008r2-64.json +184 -0
  137. data/spec/fixtures/controlrepos/puppet_controlrepo/spec/factsets/Windows_Server-2012r2-64.json +165 -0
  138. data/spec/fixtures/controlrepos/puppet_controlrepo/spec/hiera.yaml +18 -0
  139. data/spec/fixtures/controlrepos/puppet_controlrepo/spec/matchers/file_matchers.rb +16 -0
  140. data/spec/fixtures/controlrepos/puppet_controlrepo/spec/onceover.yaml +54 -0
  141. data/spec/fixtures/controlrepos/puppet_controlrepo/spec/pre_conditions/site.pp +150 -0
  142. data/spec/fixtures/controlrepos/puppet_controlrepo/spec/r10k.yaml +2 -0
  143. data/spec/fixtures/controlrepos/puppet_controlrepo/spec/shared_examples/helper.rb +91 -0
  144. data/spec/fixtures/controlrepos/puppet_controlrepo/spec/unit/00_parse_spec.rb +76 -0
  145. data/spec/fixtures/controlrepos/puppet_controlrepo/spec/unit/01_linting_spec_example.rb +69 -0
  146. data/spec/fixtures/controlrepos/puppet_controlrepo/spec/unit/03_puppetfile_spec_example.rb +35 -0
  147. data/templates/spec_helper.rb.erb +0 -2
  148. data/templates/test_spec.rb.erb +3 -0
  149. metadata +136 -77
  150. data/.gitmodules +0 -4
@@ -0,0 +1,29 @@
1
+ # # CD4PE
2
+ #
3
+ # Creates a CD4PE server with all components running on the same machine, this
4
+ # includes:
5
+ # - Artifactory: `8081`
6
+ # - CD4PE: `8080`
7
+ #
8
+ # ## Login Details
9
+ #
10
+ # ### Root User
11
+ #
12
+ # Username: `root`
13
+ # Email: `noreply@puppet.com`
14
+ # Password: `puppetlabs`
15
+ #
16
+ # ### Personal User
17
+ #
18
+ # Username: `dylanratcliffe`
19
+ # Email: dylan.ratcliffe@puppet.com
20
+ # Password: `puppetlabs`
21
+ #
22
+ # ## Manual Configuration
23
+ #
24
+ # 1. Register for an account using the personal user credentials
25
+ # 1. NEED TO SET UP GITLAB
26
+ class role::cd4pe {
27
+ include profile::base
28
+ include profile::cd4pe::replicated
29
+ }
@@ -0,0 +1,16 @@
1
+ # # Sunburst Webserver
2
+ #
3
+ # Runs a basic webserver that serves a clock on port 8080
4
+ #
5
+ # **OS:** RedHat
6
+ #
7
+ # ## Services
8
+ #
9
+ # ### Clock
10
+ #
11
+ # Protocol: HTTP
12
+ # Port: `8080`
13
+ class role::clock {
14
+ include ::profile::base
15
+ include ::profile::polar_clock
16
+ }
@@ -0,0 +1,5 @@
1
+ #
2
+ class role::compile::balancer {
3
+ include ::profile::base
4
+ include ::profile::compile::balancer
5
+ }
@@ -0,0 +1,5 @@
1
+ #
2
+ class role::compile::master {
3
+ include ::profile::base
4
+ include ::profile::compile::master
5
+ }
@@ -0,0 +1,10 @@
1
+ # == Class: role::eyeunify
2
+ #
3
+ class role::eyeunify::aio {
4
+ # Testing eyeunify role
5
+ include ::profile::base
6
+ include ::profile::eyeunify::base
7
+ include ::profile::eyeunify::core
8
+ include ::profile::eyeunify::database
9
+ include ::profile::eyeunify::ctrl
10
+ }
@@ -0,0 +1,10 @@
1
+ # == Class: role::eyeunify
2
+ #
3
+ # Accessable at :80/eyeUNIFYctrl
4
+ class role::eyeunify::controller {
5
+ # Testing eyeunify role
6
+ include ::profile::base
7
+ include ::profile::eyeunify::base
8
+ include ::profile::eyeunify::core
9
+ include ::profile::eyeunify::ctrl
10
+ }
@@ -0,0 +1,7 @@
1
+ # == Class: role::eyeunify
2
+ #
3
+ class role::eyeunify::database {
4
+ # Testing eyeunify role
5
+ include ::profile::base
6
+ include ::profile::eyeunify::database
7
+ }
@@ -0,0 +1,6 @@
1
+ # == Class: role::eyeunify::exec
2
+ #
3
+ class role::eyeunify::exec {
4
+ include ::profile::base
5
+ include ::profile::eyeunify::exec
6
+ }
@@ -0,0 +1,14 @@
1
+ # == Class: role::lb
2
+ #
3
+ # Creates a haproxy load balancer. New pools can be added in hiera
4
+ #
5
+ # ## Defauly Pools
6
+ #
7
+ # * `80`: Eyeunify
8
+ # * `8080`: Clock
9
+ # * `9090: Stats puppet:puppet
10
+ class role::lb {
11
+ include ::profile::base
12
+ include ::profile::haproxy
13
+ include ::profile::cd4pe::haproxy
14
+ }
@@ -0,0 +1,5 @@
1
+ class role::metrics {
2
+ # Testing again
3
+ include ::profile::base
4
+ include ::profile::metrics::dashboard
5
+ }
@@ -0,0 +1,13 @@
1
+ # # Generic MySQL Server
2
+ #
3
+ # Installs a generic MySQL server accoring to the forge module
4
+ #
5
+ # **OS:** RedHat
6
+ #
7
+ # ## Listening Services
8
+ #
9
+ # * MySQL: `3306`
10
+ class role::mysql {
11
+ include ::profile::base
12
+ include ::profile::mysql_server
13
+ }
@@ -0,0 +1,5 @@
1
+ # == Class: role::windows::base
2
+ #
3
+ class role::windows::base {
4
+ include ::profile::base::windows
5
+ }
@@ -0,0 +1,6 @@
1
+ #
2
+ class role::windows::webserver {
3
+ include ::profile::base::windows
4
+ include ::profile::windows::webserver
5
+ include ::profile::sunburst::windows
6
+ }
@@ -0,0 +1,5 @@
1
+ .onceover
2
+ .DS_Store
3
+ .bundle
4
+ Gemfile.lock
5
+ vendor
@@ -0,0 +1,94 @@
1
+ HOSTS:
2
+ CentOS-7.0-64-master:
3
+ roles:
4
+ - agent
5
+ type: aio
6
+ platform: el-7-64
7
+ box: puppetlabs/centos-7.0-64-puppet
8
+ box_url: https://s3.amazonaws.com/puppetlabs-vagrantcloud/centos-7.0-x86_64-virtualbox-puppet-1.0.2.box
9
+ hypervisor: vagrant_virtualbox
10
+ CentOS-6.6-64:
11
+ roles:
12
+ - agent
13
+ type: aio
14
+ platform: el-6-64
15
+ box: puppetlabs/centos-6.6-64-puppet
16
+ box_url: https://s3.amazonaws.com/puppetlabs-vagrantcloud/centos-6.6-x86_64-virtualbox-puppet-1.0.2.box
17
+ hypervisor: vagrant_virtualbox
18
+ CentOS-7.0-64:
19
+ roles:
20
+ - agent
21
+ type: aio
22
+ platform: el-7-64
23
+ box: puppetlabs/centos-7.0-64-puppet
24
+ box_url: https://s3.amazonaws.com/puppetlabs-vagrantcloud/centos-7.0-x86_64-virtualbox-puppet-1.0.2.box
25
+ hypervisor: vagrant_virtualbox
26
+ Debian-7.8-64:
27
+ roles:
28
+ - agent
29
+ type: aio
30
+ platform: debian-7.8-64
31
+ box: puppetlabs/Debian-7.8-64-puppet
32
+ box_url: https://s3.amazonaws.com/puppetlabs-vagrantcloud/debian-7.8-x86_64-virtualbox-puppet-1.0.3.box
33
+ hypervisor: vagrant_virtualbox
34
+ Ubuntu-12.04-32:
35
+ roles:
36
+ - agent
37
+ type: aio
38
+ platform: ubuntu-12.04-32
39
+ box: puppetlabs/ubuntu-12.04-32-puppet
40
+ box_url: https://s3.amazonaws.com/puppetlabs-vagrantcloud/ubuntu-12.04-i386-virtualbox-puppet-1.0.2.box
41
+ hypervisor: vagrant_virtualbox
42
+ Ubuntu-14.04-64:
43
+ roles:
44
+ - agent
45
+ type: aio
46
+ platform: ubuntu-14.04-64
47
+ box: puppetlabs/ubuntu-14.04-64-puppet
48
+ box_url: https://s3.amazonaws.com/puppetlabs-vagrantcloud/ubuntu-14.04-x86_64-virtualbox-puppet-1.0.2.box
49
+ hypervisor: vagrant_virtualbox
50
+ CentOS-7.0-64-openstack:
51
+ roles:
52
+ - agent
53
+ type: aio
54
+ platform: el-7-x86_64
55
+ image: centos_7_x86_64_puppet
56
+ flavor: d1.small
57
+ hypervisor: openstack
58
+ user: centos
59
+ Ubuntu-14.04-64-openstack:
60
+ roles:
61
+ - agent
62
+ type: aio
63
+ platform: ubuntu-14.04-64
64
+ image: ubuntu_14.04_x86_64_puppet
65
+ flavor: d1.small
66
+ hypervisor: openstack
67
+ user: ubuntu
68
+ # Windows_Server-2008r2-64:
69
+ # roles:
70
+ # - agent
71
+ # type: aio
72
+ # platform: --64
73
+ # box: UNKNOWN
74
+ # box_url: URL goes here
75
+ # hypervisor: vagrant_virtualbox
76
+ # Windows_Server-2012r2-64:
77
+ # roles:
78
+ # - agent
79
+ # type: aio
80
+ # platform: --64
81
+ # box: UNKNOWN
82
+ # box_url: URL goes here
83
+ # hypervisor: vagrant_virtualbox
84
+ CONFIG:
85
+ openstack_api_key: 'OPENSTACK_PASSWORD'
86
+ openstack_username: dylan.ratcliffe
87
+ openstack_auth_url: 'https://slice-pdx1-prod.ops.puppetlabs.net:5000/v2.0/tokens'
88
+ openstack_tenant: dylan.ratcliffe
89
+ openstack_network : network0
90
+ openstack_keyname : bamboo
91
+ ssh:
92
+ auth_methods:
93
+ - publickey
94
+ keys: 'OPENSTACK_KEY'
@@ -0,0 +1,8 @@
1
+ require 'spec_helper'
2
+
3
+ describe "role::dbserver" do
4
+ context "With no facts" do
5
+ let(:facts) { { } }
6
+ it { should_not compile }
7
+ end
8
+ end