Commit 5f5c0a84 by source_reader

added files to rpi desktop

parent 733fb87e
......@@ -30,6 +30,7 @@ class common {
source => 'puppet:///modules/common/chromium_policy.json'
}
# Set up files on the Desktop
if $facts['platform'] == 'ubuntu'{
file {'/etc/skel/Desktop':
ensure => directory,
}
......@@ -37,81 +38,68 @@ class common {
ensure => present,
source => 'puppet:///modules/common/README'
}
vcsrepo{'/etc/skel/Desktop/example_modules':
ensure => latest,
provider => git,
source => 'https://github.com/wattsworth/example-modules.git'
}
# first boot initialization scripts
file {'/usr/local/bin/first_boot':
} else {
file { '/etc/profile.d/first_boot.sh':
ensure => present,
owner => root,
group => root,
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,
owner => root,
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'
source => 'puppet:///modules/common/README'
}
service { "first_boot.service":
provider => systemd,
enable => true,
require => File['/etc/systemd/system/first_boot.service']
vcsrepo{'/home/pi/Desktop/example_modules':
ensure => latest,
provider => git,
source => 'https://github.com/wattsworth/example-modules.git'
}
file { '/etc/profile.d/first_boot.sh':
file {'/etc/xdg/lxsession/LXDE-pi/autostart':
ensure => present,
owner => root,
group => root,
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,
owner => root,
group => root,
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,
owner => root,
group => root,
mode => '0755',
source => 'puppet:///modules/common/autostart_xdg'
source => 'puppet:///modules/common/first_boot.sh'
}
} else {
file {'/etc/skel/.config':
ensure => directory,
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":
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,
owner => root,
group => root,
mode => '0644',
source => 'puppet:///modules/common/ubuntu_autostart',
require => File["/etc/skel/.config"]
}
mode => '0755',
source => 'puppet:///modules/common/first_boot_status.sh'
}
}
......@@ -79,6 +79,15 @@ class nginx::pi{
ensure => "6.0.4",
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':
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