Update to add virtualcoke
authorMark Tearle <[email protected]>
Sun, 15 Mar 2015 10:23:31 +0000 (18:23 +0800)
committerMark Tearle <[email protected]>
Sun, 15 Mar 2015 10:23:31 +0000 (18:23 +0800)
puppet/manifests/init.pp
puppet/modules/uccvend-configs/templates/dispense-server.conf.erb
puppet/modules/virtualcoke/manifests/init.pp [new file with mode: 0644]
puppet/modules/virtualsnack/manifests/init.pp

index 84f1464..23c8524 100644 (file)
@@ -14,8 +14,26 @@ file { "/vagrant/code":
        ensure => directory,
 }
 
+# common dependencies
+
+package { 'python3':
+       ensure => present,
+}
+
+package { 'python-pip':
+          ensure => present,
+}
+
+package { 'npyscreen':
+          provider => pip,
+          ensure => present,
+}
+
+
+
 include uccvend-snackrom
 include virtualsnack
+include virtualcoke
 include opendispense2
 include uccvend-vendserver
 
index 1da6ba1..282e44e 100644 (file)
@@ -9,6 +9,7 @@ items_file items.cfg
 # PLC - coke brain
 #coke_modbus_address 130.95.13.73
 coke_modbus_address 0.0.0.0
+coke_modbus_port 1502
 
 # Zero price items, defaults to off
 test_mode no
diff --git a/puppet/modules/virtualcoke/manifests/init.pp b/puppet/modules/virtualcoke/manifests/init.pp
new file mode 100644 (file)
index 0000000..ad8d224
--- /dev/null
@@ -0,0 +1,20 @@
+# == Class: virtualcoke
+#
+class virtualcoke {
+       package { 'python-pymodbus' :
+         ensure => present
+       }
+
+       package { 'python-twisted' :
+         ensure => present
+       }
+
+
+       vcsrepo { "/vagrant/code/virtualcoke":
+         ensure => present,
+         provider => git,
+         require => [ Package[ 'git' ] ],
+         source => "https://github.com/ucc/virtualcoke.git",
+         revision => 'master',
+       }
+}
index f13e8ed..ee5c0a9 100644 (file)
@@ -1,19 +1,6 @@
 # == 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,

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