Add basic puppet + hiera + test kitchen files
diff --git a/.kitchen.cloud.yml b/.kitchen.cloud.yml
new file mode 100644
index 0000000..751ab77
--- /dev/null
+++ b/.kitchen.cloud.yml
@@ -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
diff --git a/.kitchen.yml b/.kitchen.yml
new file mode 100644
index 0000000..fcf4594
--- /dev/null
+++ b/.kitchen.yml
@@ -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
diff --git a/Gemfile b/Gemfile
new file mode 100644
index 0000000..3312e97
--- /dev/null
+++ b/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'
diff --git a/puppet/data/common.yaml b/puppet/data/common.yaml
new file mode 100644
index 0000000..6b117f0
--- /dev/null
+++ b/puppet/data/common.yaml
@@ -0,0 +1,4 @@
+---
+classes:
+ - customfact
+
diff --git a/puppet/data/ubuntu/1404.yaml b/puppet/data/ubuntu/1404.yaml
new file mode 100644
index 0000000..e4b3b29
--- /dev/null
+++ b/puppet/data/ubuntu/1404.yaml
@@ -0,0 +1,5 @@
+---
+classes:
+ - apache
+ - apt
+ - test
diff --git a/puppet/hiera.yaml b/puppet/hiera.yaml
new file mode 100644
index 0000000..53e26ac
--- /dev/null
+++ b/puppet/hiera.yaml
@@ -0,0 +1,14 @@
+---
+:backends:
+ - yaml
+
+:hierarchy:
+ - "nodes/%{clientcert}"
+ - "%{::asfosname}/%{::asfosrelease}"
+ - "colo/%{asfcolo}"
+ - "oem/%{::oem}"
+ - "common"
+
+:yaml:
+ :datadir: '/tmp/kitchen/hiera'
+
diff --git a/puppet/manifests/site.pp b/puppet/manifests/site.pp
new file mode 100644
index 0000000..839123f
--- /dev/null
+++ b/puppet/manifests/site.pp
@@ -0,0 +1,4 @@
+hiera_include("classes")
+
+node default {
+}