From 353b2521ea4e32305a62ed1b3f880e03709e5b14 Mon Sep 17 00:00:00 2001 From: Mark Tearle Date: Sat, 29 Nov 2014 22:59:48 +0800 Subject: [PATCH] Initial revision of puppet module to checkout uccvend-snackrom --- .gitignore | 1 + puppet/manifests/init.pp | 6 +++++- puppet/modules/uccvend-snackrom/manifests/init.pp | 11 +++++++++++ 3 files changed, 17 insertions(+), 1 deletion(-) create mode 100644 puppet/modules/uccvend-snackrom/manifests/init.pp diff --git a/.gitignore b/.gitignore index 2c72071..51f639e 100644 --- a/.gitignore +++ b/.gitignore @@ -1 +1,2 @@ .vagrant/* +code/* diff --git a/puppet/manifests/init.pp b/puppet/manifests/init.pp index 0353d72..095d258 100644 --- a/puppet/manifests/init.pp +++ b/puppet/manifests/init.pp @@ -10,5 +10,9 @@ package { 'git': ensure => present, } -#include xorg +file { "/vagrant/code": + ensure => directory, +} + +include uccvend-snackrom #include x11-common diff --git a/puppet/modules/uccvend-snackrom/manifests/init.pp b/puppet/modules/uccvend-snackrom/manifests/init.pp new file mode 100644 index 0000000..2d13164 --- /dev/null +++ b/puppet/modules/uccvend-snackrom/manifests/init.pp @@ -0,0 +1,11 @@ +# == Class: snackrom +# +class uccvend-snackrom { + vcsrepo { "/vagrant/code/uccvend-snackrom": + ensure => present, + provider => git, + require => [ Package[ 'git' ] ], + source => "git://git.ucc.asn.au/uccvend-snackrom.git", + revision => 'master', + } +} -- 2.20.1