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
749b228a
authored
Oct 17, 2019
by
source_reader
Browse files
Options
_('Browse Files')
Download
Email Patches
Plain Diff
added new documentation files
parent
9c29795e
Hide whitespace changes
Inline
Side-by-side
Showing
10 changed files
with
46 additions
and
40 deletions
modules/common/files/pi_NETWORK_README → modules/common/files/pi/NETWORK_README
modules/common/files/autostart_xdg → modules/common/files/pi/autostart_xdg
modules/common/files/first_boot_gui_notify.sh → modules/common/files/pi/first_boot_gui_notify.sh
modules/common/files/first_boot_sh_notify.sh → modules/common/files/pi/first_boot_sh_notify.sh
modules/common/manifests/init.pp
modules/hostapd/manifests/config.pp
modules/hostapd/manifests/service.pp
site.pp
tests/ww_test_script.sh
vagrant/Vagrantfile
modules/common/files/pi
_
NETWORK_README
→
modules/common/files/pi
/
NETWORK_README
View file @
749b228a
File moved
modules/common/files/autostart_xdg
→
modules/common/files/
pi/
autostart_xdg
View file @
749b228a
File moved
modules/common/files/first_boot_gui_notify.sh
→
modules/common/files/
pi/
first_boot_gui_notify.sh
View file @
749b228a
File moved
modules/common/files/first_boot_sh_notify.sh
→
modules/common/files/
pi/
first_boot_sh_notify.sh
View file @
749b228a
File moved
modules/common/manifests/init.pp
View file @
749b228a
...
...
@@ -29,7 +29,7 @@ class common {
mode
=>
'0644'
,
source
=>
'puppet:///modules/common/chromium_policy.json'
}
# Set up files on the
Desktop
# Set up files on the
Ubuntu Desktop (through /etc/skel)
if
$facts
[
'platform'
]
==
'ubuntu'
{
file
{
'/etc/skel/Desktop'
:
ensure
=>
directory
,
...
...
@@ -43,18 +43,39 @@ class common {
provider
=>
git
,
source
=>
'https://github.com/wattsworth/example-modules.git'
}
}
else
{
file
{
'/etc/skel/Desktop/STORAGE_README'
:
ensure
=>
present
,
source
=>
'puppet:///modules/common/STORAGE_README'
}
}
# set up files on Pi (directly to /home/pi)
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'
source
=>
'puppet:///modules/common/
pi/
first_boot_sh_notify.sh'
}
file
{
'/home/pi/Desktop/README'
:
ensure
=>
present
,
owner
=>
pi
,
group
=>
pi
,
source
=>
'puppet:///modules/common/README'
}
file
{
'/etc/skel/Desktop/STORAGE_README'
:
ensure
=>
present
,
owner
=>
pi
,
group
=>
pi
,
source
=>
'puppet:///modules/common/STORAGE_README'
}
file
{
'/etc/skel/Desktop/NETWORK_README'
:
ensure
=>
present
,
owner
=>
pi
,
group
=>
pi
,
source
=>
'puppet:///modules/common/pi/NETWORK_README'
}
vcsrepo
{
'/home/pi/Desktop/example_modules'
:
ensure
=>
latest
,
provider
=>
git
,
...
...
@@ -65,14 +86,14 @@ class common {
owner
=>
root
,
group
=>
root
,
mode
=>
'0755'
,
source
=>
'puppet:///modules/common/autostart_xdg'
source
=>
'puppet:///modules/common/
pi/
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'
source
=>
'puppet:///modules/common/
pi/
first_boot_gui_notify.sh'
}
}
# first boot initialization scripts
...
...
modules/hostapd/manifests/config.pp
View file @
749b228a
class
hostapd::config
{
notice
(
"including hostapd config"
)
file
{
'/etc/hostapd/hostapd.conf'
:
owner
=>
root
,
group
=>
root
,
source
=>
'puppet:///modules/hostapd/pi/hostapd.conf'
if
$facts
[
'platform'
]
==
'rpi'
{
file
{
'/etc/hostapd/hostapd.conf'
:
owner
=>
root
,
group
=>
root
,
source
=>
'puppet:///modules/hostapd/pi/hostapd.conf'
}
file
{
'/etc/dnsmasq.conf'
:
owner
=>
root
,
group
=>
root
,
source
=>
'puppet:///modules/hostapd/pi/dnsmasq.conf'
}
file
{
'/etc/dhcpcd.conf'
:
owner
=>
root
,
group
=>
root
,
source
=>
'puppet:///modules/hostapd/pi/dhcpcd.conf'
}
}
file
{
'/etc/dnsmasq.conf'
:
owner
=>
root
,
group
=>
root
,
source
=>
'puppet:///modules/hostapd/pi/dnsmasq.conf'
}
file
{
'/etc/dhcpcd.conf'
:
owner
=>
root
,
group
=>
root
,
source
=>
'puppet:///modules/hostapd/pi/dhcpcd.conf'
}
}
modules/hostapd/manifests/service.pp
View file @
749b228a
class
hostapd::service
{
notice
(
"including hostapd service"
)
# disable both services
service
{
'hostapd'
:
enable
=>
false
,
ensure
=>
stopped
,
...
...
site.pp
View file @
749b228a
...
...
@@ -4,25 +4,7 @@ node 'default' {
include
joule
include
static_sites
include
rails_api
#
include joule_labjack
include
joule_labjack
include
nginx
include
hostapd
}
node
'nilm'
{
include
joule
include
nilmdb
include
nilm
include
static_sites
include
rails_api
include
joule_labjack
include
nilmplug
}
node
'rpi'
{
include
joule
include
timescaledb
include
static_sites
include
rails_api
include
joule_labjack
}
tests/ww_test_script.sh
View file @
749b228a
...
...
@@ -4,7 +4,7 @@ export LC_ALL=C.UTF-8
export
LANG
=
C.UTF-8
joule admin authorize
joule master add lumen
http://127.0.0.1/lumen
joule master add lumen
127.0.0.1
#----Module Configs----
...
...
vagrant/Vagrantfile
View file @
749b228a
...
...
@@ -38,7 +38,7 @@ Vagrant.configure("2") do |config|
# the path on the guest to mount the folder. And the optional third
# argument is a set of non-required options.
config
.
vm
.
synced_folder
"../"
,
"/puppet"
config
.
vm
.
synced_folder
"/home/jdonnal/joule"
,
"/joule"
# Provider-specific configuration so you can fine-tune various
# backing providers for Vagrant. These expose provider-specific options.
# Example for VirtualBox:
...
...
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