Changeset e82ec64 for src/puppetcode
- Timestamp:
- Jul 20, 2016, 10:39:34 PM (10 years ago)
- Branches:
- 0.5, app-cordova, debian/bullseye, debian/jessie, master
- Children:
- f336595
- Parents:
- 0272b16
- Location:
- src/puppetcode/environments/test
- Files:
-
- 5 edited
-
hieradata/common.yaml (modified) (2 diffs)
-
modules/gnuboat_epd/manifests/service.pp (modified) (2 diffs)
-
modules/gnuboat_epd/templates/epd-fuse.service.epp (modified) (1 diff)
-
modules/gnuboat_lighttpd/manifests/init.pp (modified) (1 diff)
-
modules/gnuboat_lighttpd/manifests/install.pp (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
src/puppetcode/environments/test/hieradata/common.yaml
r0272b16 re82ec64 4 4 - gnuboat_epd 5 5 - gnuboat_gpsd 6 - gnuboat_gnuboat 6 7 7 8 gnuboat_lighttpd::status: 'running' … … 10 11 gnuboat_epd::service::enabled: true 11 12 gnuboat_epd::service::display_size: '2.7' 12 gnuboat_epd::service::exec_start_post: '/usr/bin/gnuboat- welcome'13 gnuboat_epd::service::exec_stop_pre: '/usr/bin/gnuboat- goodby'13 gnuboat_epd::service::exec_start_post: '/usr/bin/gnuboat-splashscreen -i /home/pi/gnuboat/src/icon/gnuboat-170.png' 14 gnuboat_epd::service::exec_stop_pre: '/usr/bin/gnuboat-splashscreen -i /home/pi/gnuboat/src/icon/gnuboat-170.png' 14 15 gnuboat_epd::install::panel: 'v230-g2' 15 16 gnuboat_gpsd::service::status: 'running' -
src/puppetcode/environments/test/modules/gnuboat_epd/manifests/service.pp
r0272b16 re82ec64 3 3 Enum['running', 'stopped'] $status = 'running', 4 4 Boolean $enabled = true, 5 String $options = '-o allow_other -o default_permissions' 6 String $mount_point = '/dev/ep p',7 String $display_size = '2.7' 5 String $options = '-o allow_other -o default_permissions', 6 String $mount_point = '/dev/epd', 7 String $display_size = '2.7', 8 8 String $exec_start_post = '', # Could be set to a script to display a welcome screen, after starting epd-fuse service 9 9 String $exec_stop_pre = '', # Could be set to a script to display a good by screen, before stopping epd-fuse service … … 30 30 # }), 31 31 # } 32 33 file{'/etc/systemd/system/epd-fuse.service/local.conf': 32 33 file{'/etc/systemd/system': 34 ensure => 'directory', 35 owner => 'root', 36 group => 'root', 37 mode => '0750', 38 } 39 40 file{'/etc/systemd/system/epd-fuse.service': 34 41 ensure => present, 35 42 owner => 'root', -
src/puppetcode/environments/test/modules/gnuboat_epd/templates/epd-fuse.service.epp
r0272b16 re82ec64 1 [Unit] 2 Description=A Fuse driver for the Repaper.org EPD 3 After=network.target 4 1 5 [Service] 2 ExecStartPre=/usr/bin/mkdir -p <%= $mount_point %> 6 Type=forking 7 PrivateDevices=no 8 SyslogLevel=err 9 ExecStartPre=/bin/mkdir -p <%= $mount_point %> 3 10 ExecStart= 4 11 ExecStart=/usr/sbin/epd_fuse --panel=<%= $display_size %> <%= $options %> <%= $mount_point %> 5 <% if $exec_start_post { -%> 6 ExecStartPost=-<%= $exec_start_post %> 12 ExecStop= 13 <% if $exec_stop_pre { -%> 14 ExecStop=-<%= $exec_stop_pre %> 7 15 <% } -%> 8 ExecStop= 9 ExecStop=/usr/bin/umount <%= $mount_point %> 10 <% if $exec_stop_pre { -%> 11 ExecStopPre=-<%= $exec_stop_pre %> 12 <% } -%> 16 ExecStop=/bin/umount <%= $mount_point %> 17 KillSignal=SIGQUIT 18 KillMode=mixed 19 20 [Install] 21 WantedBy=multi-user.target -
src/puppetcode/environments/test/modules/gnuboat_lighttpd/manifests/init.pp
r0272b16 re82ec64 2 2 ( 3 3 String $version = 'latest', 4 Boolean $enable_php = true, 4 5 ) 5 6 { 6 7 contain gnuboat_lighttpd::install 8 contain gnuboat_lighttpd::config 7 9 contain gnuboat_lighttpd::service 8 10 9 11 Class['gnuboat_lighttpd::install'] -> 12 Class['gnuboat_lighttpd::config'] -> 10 13 Class['gnuboat_lighttpd::service'] 11 14 } -
src/puppetcode/environments/test/modules/gnuboat_lighttpd/manifests/install.pp
r0272b16 re82ec64 5 5 notify => Service['lighttpd'], 6 6 } 7 8 if $enable_php { 9 package{'php5-cgi': 10 ensure => $version, 11 } 12 } 7 13 }
Note:
See TracChangeset
for help on using the changeset viewer.
