added demos to the repo
[groupbasedpolicy.git] / demos / gbp-devstack / puppet / manifests / devstack-compute.pp
diff --git a/demos/gbp-devstack/puppet/manifests/devstack-compute.pp b/demos/gbp-devstack/puppet/manifests/devstack-compute.pp
new file mode 100644 (file)
index 0000000..d85ebb0
--- /dev/null
@@ -0,0 +1,17 @@
+vcsrepo {'/home/vagrant/devstack':
+    ensure   => present,
+    provider => git,
+    user     => 'vagrant',
+    source   => 'https://github.com/openstack-dev/devstack.git',
+    revision => 'stable/kilo',
+    before   => File['/home/vagrant/devstack/local.conf'],
+}
+
+$hosts = hiera('hosts')
+
+file { '/home/vagrant/devstack/local.conf':
+    ensure  => present,
+    owner   => 'vagrant',
+    group   => 'vagrant',
+    content => template('/vagrant/puppet/templates/compute.local.conf.erb'),
+}