Skip to content
Toggle navigation
P
Projects
G
Groups
S
Snippets
Help
wattsworth
/
puppet
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Issues
0
Merge Requests
0
Pipelines
Wiki
Settings
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Commit
5f5c0a84
authored
Oct 02, 2019
by
source_reader
Browse files
Options
_('Browse Files')
Download
Email Patches
Plain Diff
added files to rpi desktop
parent
733fb87e
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
53 additions
and
56 deletions
modules/common/manifests/init.pp
modules/nginx/manifests/pi.pp
modules/common/manifests/init.pp
View file @
5f5c0a84
...
...
@@ -30,21 +30,51 @@ class common {
source
=>
'puppet:///modules/common/chromium_policy.json'
}
# Set up files on the Desktop
file
{
'/etc/skel/Desktop'
:
ensure
=>
directory
,
}
file
{
'/etc/skel/Desktop/README'
:
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'
if
$facts
[
'platform'
]
==
'ubuntu'
{
file
{
'/etc/skel/Desktop'
:
ensure
=>
directory
,
}
file
{
'/etc/skel/Desktop/README'
:
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'
}
}
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
file
{
'/usr/local/bin/first_boot'
:
ensure
=>
present
,
...
...
@@ -53,13 +83,6 @@ class common {
mode
=>
'0755'
,
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'
:
ensure
=>
present
,
owner
=>
root
,
...
...
@@ -72,13 +95,6 @@ class common {
enable
=>
true
,
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'
:
ensure
=>
present
,
owner
=>
root
,
...
...
@@ -86,32 +102,4 @@ class common {
mode
=>
'0755'
,
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"
]
}
}
}
modules/nginx/manifests/pi.pp
View file @
5f5c0a84
...
...
@@ -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
,
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment