Commit 5f5c0a84 by source_reader

added files to rpi desktop

parent 733fb87e
...@@ -30,6 +30,7 @@ class common { ...@@ -30,6 +30,7 @@ class common {
source => 'puppet:///modules/common/chromium_policy.json' source => 'puppet:///modules/common/chromium_policy.json'
} }
# Set up files on the Desktop # Set up files on the Desktop
if $facts['platform'] == 'ubuntu'{
file {'/etc/skel/Desktop': file {'/etc/skel/Desktop':
ensure => directory, ensure => directory,
} }
...@@ -37,81 +38,68 @@ class common { ...@@ -37,81 +38,68 @@ class common {
ensure => present, ensure => present,
source => 'puppet:///modules/common/README' source => 'puppet:///modules/common/README'
} }
vcsrepo{'/etc/skel/Desktop/example_modules': vcsrepo{'/etc/skel/Desktop/example_modules':
ensure => latest, ensure => latest,
provider => git, provider => git,
source => 'https://github.com/wattsworth/example-modules.git' source => 'https://github.com/wattsworth/example-modules.git'
} }
} else {
# first boot initialization scripts file { '/etc/profile.d/first_boot.sh':
file {'/usr/local/bin/first_boot':
ensure => present, ensure => present,
owner => root, owner => root,
group => root, group => root,
mode => '0755', mode => '0755',
source => 'puppet:///modules/common/first_boot.sh' source => 'puppet:///modules/common/first_boot_sh_notify.sh'
} }
file {'/usr/local/bin/first_boot_gui_notify': file {'/home/pi/Desktop/README':
ensure => present, ensure => present,
owner => root, source => 'puppet:///modules/common/README'
group => root,
mode => '0755',
source => 'puppet:///modules/common/first_boot_gui_notify.sh'
}
file { '/etc/systemd/system/first_boot.service':
ensure => present,
owner => root,
group => root,
mode => '0644',
source => 'puppet:///modules/common/first_boot.service'
} }
service { "first_boot.service": vcsrepo{'/home/pi/Desktop/example_modules':
provider => systemd, ensure => latest,
enable => true, provider => git,
require => File['/etc/systemd/system/first_boot.service'] source => 'https://github.com/wattsworth/example-modules.git'
} }
file { '/etc/profile.d/first_boot.sh': file {'/etc/xdg/lxsession/LXDE-pi/autostart':
ensure => present, ensure => present,
owner => root, owner => root,
group => root, group => root,
mode => '0755', mode => '0755',
source => 'puppet:///modules/common/first_boot_sh_notify.sh' source => 'puppet:///modules/common/autostart_xdg'
} }
file { '/usr/local/bin/first_boot_status': file {'/usr/local/bin/first_boot_gui_notify':
ensure => present, ensure => present,
owner => root, owner => root,
group => root, group => root,
mode => '0755', mode => '0755',
source => 'puppet:///modules/common/first_boot_status.sh' source => 'puppet:///modules/common/first_boot_gui_notify.sh'
} }
if $facts['platform'] == 'rpi' { }
file {'/etc/xdg/lxsession/LXDE-pi/autostart': # first boot initialization scripts
file {'/usr/local/bin/first_boot':
ensure => present, ensure => present,
owner => root, owner => root,
group => root, group => root,
mode => '0755', mode => '0755',
source => 'puppet:///modules/common/autostart_xdg' source => 'puppet:///modules/common/first_boot.sh'
} }
} else { file { '/etc/systemd/system/first_boot.service':
file {'/etc/skel/.config': ensure => present,
ensure => directory,
owner => root, owner => root,
group => root, group => root,
mode => '0644', mode => '0644',
source => 'puppet:///modules/common/first_boot.service'
}
service { "first_boot.service":
provider => systemd,
enable => true,
require => File['/etc/systemd/system/first_boot.service']
} }
file {'/etc/skel/.config/first_boot.desktop': file { '/usr/local/bin/first_boot_status':
ensure => present, ensure => present,
owner => root, owner => root,
group => root, group => root,
mode => '0644', mode => '0755',
source => 'puppet:///modules/common/ubuntu_autostart', source => 'puppet:///modules/common/first_boot_status.sh'
require => File["/etc/skel/.config"]
}
} }
} }
...@@ -79,6 +79,15 @@ class nginx::pi{ ...@@ -79,6 +79,15 @@ class nginx::pi{
ensure => "6.0.4", ensure => "6.0.4",
provider => gem, provider => gem,
} }
package {'libcurl4-openssl-dev':
ensure => present,
}
exec {'install-agent':
command => '/usr/local/bin/passenger-config install-agent --auto',
creates => '/var/lib/gems/2.5.0/gems/passenger-6.0.4/buildout/support-binaries/PassengerAgent',
timeout => 0,
require => Package['passenger','libcurl4-openssl-dev'],
}
service {'nginx': service {'nginx':
ensure => running, ensure => running,
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or sign in to comment