Commit 5f5c0a84 by source_reader

added files to rpi desktop

parent 733fb87e
...@@ -30,21 +30,51 @@ class common { ...@@ -30,21 +30,51 @@ 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
file {'/etc/skel/Desktop': if $facts['platform'] == 'ubuntu'{
ensure => directory, file {'/etc/skel/Desktop':
} ensure => directory,
file {'/etc/skel/Desktop/README': }
ensure => present, file {'/etc/skel/Desktop/README':
source => 'puppet:///modules/common/README' ensure => present,
} 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 {
file { '/etc/profile.d/first_boot.sh':
ensure => present,
owner => root,
group => root,
mode => '0755',
source => 'puppet:///modules/common/first_boot_sh_notify.sh'
}
file {'/home/pi/Desktop/README':
ensure => present,
source => 'puppet:///modules/common/README'
}
vcsrepo{'/home/pi/Desktop/example_modules':
ensure => latest,
provider => git,
source => 'https://github.com/wattsworth/example-modules.git'
}
file {'/etc/xdg/lxsession/LXDE-pi/autostart':
ensure => present,
owner => root,
group => root,
mode => '0755',
source => 'puppet:///modules/common/autostart_xdg'
}
file {'/usr/local/bin/first_boot_gui_notify':
ensure => present,
owner => root,
group => root,
mode => '0755',
source => 'puppet:///modules/common/first_boot_gui_notify.sh'
}
} }
# first boot initialization scripts # first boot initialization scripts
file {'/usr/local/bin/first_boot': file {'/usr/local/bin/first_boot':
ensure => present, ensure => present,
...@@ -53,13 +83,6 @@ class common { ...@@ -53,13 +83,6 @@ class common {
mode => '0755', mode => '0755',
source => 'puppet:///modules/common/first_boot.sh' source => 'puppet:///modules/common/first_boot.sh'
} }
file {'/usr/local/bin/first_boot_gui_notify':
ensure => present,
owner => root,
group => root,
mode => '0755',
source => 'puppet:///modules/common/first_boot_gui_notify.sh'
}
file { '/etc/systemd/system/first_boot.service': file { '/etc/systemd/system/first_boot.service':
ensure => present, ensure => present,
owner => root, owner => root,
...@@ -72,13 +95,6 @@ class common { ...@@ -72,13 +95,6 @@ class common {
enable => true, enable => true,
require => File['/etc/systemd/system/first_boot.service'] require => File['/etc/systemd/system/first_boot.service']
} }
file { '/etc/profile.d/first_boot.sh':
ensure => present,
owner => root,
group => root,
mode => '0755',
source => 'puppet:///modules/common/first_boot_sh_notify.sh'
}
file { '/usr/local/bin/first_boot_status': file { '/usr/local/bin/first_boot_status':
ensure => present, ensure => present,
owner => root, owner => root,
...@@ -86,32 +102,4 @@ class common { ...@@ -86,32 +102,4 @@ class common {
mode => '0755', mode => '0755',
source => 'puppet:///modules/common/first_boot_status.sh' source => 'puppet:///modules/common/first_boot_status.sh'
} }
if $facts['platform'] == 'rpi' {
file {'/etc/xdg/lxsession/LXDE-pi/autostart':
ensure => present,
owner => root,
group => root,
mode => '0755',
source => 'puppet:///modules/common/autostart_xdg'
}
} else {
file {'/etc/skel/.config':
ensure => directory,
owner => root,
group => root,
mode => '0644',
}
file {'/etc/skel/.config/first_boot.desktop':
ensure => present,
owner => root,
group => root,
mode => '0644',
source => 'puppet:///modules/common/ubuntu_autostart',
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