Skip to content
Permalink
Browse files
Add basic puppet + hiera + test kitchen files
  • Loading branch information
stumped2 committed Jan 6, 2015
1 parent 8072a25 commit 34541f9ae6ccdcb87ad447b3d6dffcf7201e33e2
Showing 7 changed files with 97 additions and 0 deletions.
@@ -0,0 +1,38 @@
---
driver_config:
openstack_username: <%= ENV['OS_USERNAME'] %>
openstack_api_key: <%= ENV['OS_PASSWORD'] %>
openstack_auth_url: <%= "#{ENV['OS_AUTH_URL']}/tokens" %>
key_name: <%= ENV['OS_SSH_KEYPAIR'] %>
private_key_path: <%= ENV['OS_PRIVATE_SSH_KEY'] %>
public_key_path: <%= ENV['OS_PUBLIC_SSH_KEY'] %>
openstack_tenant: <%= ENV['OS_TENANT_NAME'] %>
floating_ip_pool: <%= ENV['OS_FLOATING_IP_POOL'] %>
flavor_ref: <%= ENV['OS_FLAVOR_REF'] %>
# Only use the following if you need to open up firewall ports
security_groups:
- <%= ENV['OS_SECURITY_GROUP_NO_FIREWALL'] %>

provisioner:
name: puppet_apply
manifests_path: puppet/manifests
modules_path: puppet/modules
hiera_data_path: puppet/data
hiera_config_path: puppet/hiera.yaml

platforms:
- name: ubuntu14
driver_plugin: openstack
driver_config:
username: ubuntu
image_ref: "Ubuntu-14-puppet"

suites:
- name: default
manifest: init.pp

- name: reprepro
manifest: init.pp

- name: bugzilla
manifest: init.pp
@@ -0,0 +1,21 @@
---
driver:
name: vagrant
box: trusty64
# box_url: http://opscode-vm-bento.s3.amazonaws.com/vagrant/virtualbox/opscode_ubuntu-14.04_chef-provisionerless.box
network:
- ["forwarded_port", {guest: 80, host: 8080}]
- ["forwarded_port", {guest: 443, host: 8443}]

provisioner:
name: puppet_apply
manifests_path: puppet/manifests
modules_path: puppet/modules

platforms:
- name: ubuntu14


suites:
- name: default
manifest: site.pp
11 Gemfile
@@ -0,0 +1,11 @@
# A sample Gemfile
source "https://rubygems.org"

# gem "rails"
gem "test-kitchen"
gem "kitchen-puppet"
gem "kitchen-openstack"
#gem "puppet"
gem 'serverspec'
gem 'busser'
gem 'kitchen-vagrant'
@@ -0,0 +1,4 @@
---
classes:
- customfact

@@ -0,0 +1,5 @@
---
classes:
- apache
- apt
- test
@@ -0,0 +1,14 @@
---
:backends:
- yaml

:hierarchy:
- "nodes/%{clientcert}"
- "%{::asfosname}/%{::asfosrelease}"
- "colo/%{asfcolo}"
- "oem/%{::oem}"
- "common"

:yaml:
:datadir: '/tmp/kitchen/hiera'

@@ -0,0 +1,4 @@
hiera_include("classes")

node default {
}

0 comments on commit 34541f9

Please sign in to comment.