Ignore:
Timestamp:
Jul 21, 2016, 7:16:46 PM (10 years ago)
Author:
Joachim Langenbach <joachim.langenbach@…>
Branches:
0.5, app-cordova, debian/bullseye, debian/jessie, master
Children:
2925c4a
Parents:
09adf3e
Message:

Implemented gnuboat_gnuboat puppet module to install and configure gnuboat-server and gnuboat-webclient

Location:
src/puppetcode/environments/test
Files:
3 added
3 edited

Legend:

Unmodified
Added
Removed
  • src/puppetcode/environments/test/hieradata/common.yaml

    r09adf3e rb5208ff  
    66  - gnuboat_gnuboat
    77
    8 gnuboat_lighttpd::status: 'running'
    9 gnuboat_lighttpd::enabled: true
     8gnuboat_lighttpd::servuce::status: 'running'
     9gnuboat_lighttpd::service::enabled: true
    1010gnuboat_epd::service::status: 'running'
    1111gnuboat_epd::service::enabled: true
    … …  
    1717gnuboat_gpsd::service::enabled: true
    1818gnuboat_gpsd::service::devices: '/dev/ttyACM0'
     19gnuboat_gnuboat::service::status: 'running'
     20gnuboat_gnuboat::service::enabled: true
     21gnuboat_gnuboat::server: true
     22gnuboat_gnuboat::webclient: true
  • src/puppetcode/environments/test/modules/gnuboat_gnuboat/manifests/init.pp

    r09adf3e rb5208ff  
    1 class gnuboat_gnuboat()
     1class gnuboat_gnuboat
     2(
     3        Boolean $server = true,
     4        Boolean $webclient = true,
     5)
    26{
    3         contain gnuboat_gnuboat::install
    4 #        contain gnuboat_lighttpd::config
    5  #       contain gnuboat_lighttpd::service
     7        contain gnuboat_gnuboat::install
     8        contain gnuboat_gnuboat::config
     9        contain gnuboat_gnuboat::service
    610
    7 #        Class['gnuboat_gnuboat::install']
    8   #      Class['gnuboat_lighttpd::config'] ->
    9    #     Class['gnuboat_lighttpd::service']
     11        Class['gnuboat_gnuboat::install'] ->
     12        Class['gnuboat_gnuboat::config'] ->
     13        Class['gnuboat_gnuboat::service']
    1014}
  • src/puppetcode/environments/test/modules/gnuboat_gnuboat/manifests/install.pp

    r09adf3e rb5208ff  
    11class gnuboat_gnuboat::install() inherits gnuboat_gnuboat
    22{
    3         package{'php5-rrd':
    4                 ensure => $version,
    5                 notify => Service['lighttpd'],
    6         }
     3        include apt
     4
     5#        apt::source{'gnuboatapt':
     6#                comment => 'This is the raspbian repository for GNUBoat',
     7#                location => 'http://ftp.engsas.de/unstable/gnuboat/',
     8#                release => 'jessie',
     9#                repos => 'main',
     10#                pin => '-10',
     11#                include => {
     12#                        'src' => true,
     13#                        'deb' => true,
     14#                },
     15#        }
     16
     17        if $server {
     18                package{'gnuboat-server':
     19                        ensure => $version,
     20                        notify => Service['gnuboat'],
     21                        require => Apt::Source['gnuboatapt'],
     22                }
     23        }
     24
     25        if $webclient {
     26                package{'gnuboat-webclient':
     27                        ensure => $version,
     28                        require => Apt::Source['gnuboatapt'],
     29                }
     30        }
    731}
Note: See TracChangeset for help on using the changeset viewer.