Install lzip package to enable snackrom build process
[uccvend-vagrant.git] / puppet / modules / opendispense2 / manifests / init.pp
1 # == Class: opendispense2
2 #
3 class opendispense2 {
4         package { 'libncurses5-dev':
5           ensure => present,
6         }
7         
8         package { 'libsqlite3-0':
9           ensure => present,
10         }
11         
12         package { 'libsqlite3-dev':
13           ensure => present,
14         }
15         
16         package { 'libident':
17           ensure => present,
18         }
19         
20         package { 'libident-dev':
21           ensure => present,
22         }
23         
24         package { 'libmodbus5':
25           ensure => present,
26         }
27         
28         package { 'libmodbus-dev':
29           ensure => present,
30         }
31
32         # Needed for dispense server to function correctly      
33         package { 'pidentd':
34           ensure => present,
35         }
36         
37         vcsrepo { "/vagrant/code/opendispense2":
38           ensure => present,
39           provider => git,
40           require => [ Package[ 'git' ] ],
41           source => "https://github.com/ucc/OpenDispense2.git",
42           revision => 'master',
43         }
44
45
46         file { '/etc/opendispense2':
47           ensure => 'directory',
48         }
49
50
51         file { '/etc/opendispense2/dispsrv.conf':
52           ensure => file,
53           content => template('opendispense2/dispsrv.conf.erb'),
54         }
55
56         file { '/etc/opendispense2/items.cfg':
57           ensure => file,
58           content => template('opendispense2/items.cfg.erb'),
59         }
60 }

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