From 5a2cfe186044081545374f14805000e2cf8a3ed2 Mon Sep 17 00:00:00 2001 From: Mark Tearle Date: Sun, 30 Nov 2014 17:25:33 +0800 Subject: [PATCH] Add Virtualsnack --- puppet/manifests/init.pp | 2 +- puppet/modules/virtualsnack/manifests/init.pp | 24 +++++++++++++++++++ 2 files changed, 25 insertions(+), 1 deletion(-) create mode 100644 puppet/modules/virtualsnack/manifests/init.pp diff --git a/puppet/manifests/init.pp b/puppet/manifests/init.pp index 095d258..b2da6a4 100644 --- a/puppet/manifests/init.pp +++ b/puppet/manifests/init.pp @@ -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 index 0000000..f13e8ed --- /dev/null +++ b/puppet/modules/virtualsnack/manifests/init.pp @@ -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', + } +} -- 2.20.1