Add Virtualsnack
authorMark Tearle <[email protected]>
Sun, 30 Nov 2014 09:25:33 +0000 (17:25 +0800)
committerMark Tearle <[email protected]>
Sun, 30 Nov 2014 09:25:33 +0000 (17:25 +0800)
puppet/manifests/init.pp
puppet/modules/virtualsnack/manifests/init.pp [new file with mode: 0644]

index 095d258..b2da6a4 100644 (file)
@@ -15,4 +15,4 @@ file { "/vagrant/code":
 }
 
 include uccvend-snackrom
-#include x11-common
+include virtualsnack
diff --git a/puppet/modules/virtualsnack/manifests/init.pp b/puppet/modules/virtualsnack/manifests/init.pp
new file mode 100644 (file)
index 0000000..f13e8ed
--- /dev/null
@@ -0,0 +1,24 @@
+# == Class: virtualsnack
+#
+class virtualsnack {
+       package { 'python3':
+         ensure => present,
+       }
+
+       package { 'python-pip':
+         ensure => present,
+       }
+
+       package { 'npyscreen':
+         provider => pip,
+         ensure => present,
+       }
+       
+       vcsrepo { "/vagrant/code/virtualsnack":
+         ensure => present,
+         provider => git,
+         require => [ Package[ 'git' ] ],
+         source => "https://github.com/ucc/virtualsnack.git",
+         revision => 'master',
+       }
+}

UCC git Repository :: git.ucc.asn.au