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
fa6fe91b
authored
Oct 02, 2019
by
source_reader
Browse files
Options
_('Browse Files')
Download
Email Patches
Plain Diff
additional nginx configuration
parent
04bd3fde
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
32 additions
and
24 deletions
modules/nginx/files/pi/passenger.conf
modules/nginx/manifests/pi.pp
modules/timescaledb/manifests/init.pp
rpi_bootstrap.sh
modules/nginx/files/pi/passenger.conf
0 → 100644
View file @
fa6fe91b
passenger_root
/
var
/
lib
/
gems
/
2
.
5
.
0
/
gems
/
passenger
-
6
.
0
.
4
;
passenger_ruby
/
usr
/
bin
/
ruby2
.
5
;
modules/nginx/manifests/pi.pp
View file @
fa6fe91b
...
...
@@ -21,6 +21,13 @@ class nginx::pi{
recurse
=>
true
,
source
=>
'puppet:///modules/nginx/pi/conf'
}
file
{
'/etc/nginx/conf.d/passenger.conf'
:
ensure
=>
directory
,
owner
=>
root
,
group
=>
root
,
source
=>
'puppet:///modules/nginx/pi/passenger.conf'
}
file
{
'/usr/lib/nginx/modules'
:
ensure
=>
directory
,
owner
=>
root
,
...
...
modules/timescaledb/manifests/init.pp
View file @
fa6fe91b
...
...
@@ -2,11 +2,6 @@
# Class: timescaledb
# ===========================
#
# Full description of class timescaledb here.
#
# Authors
# -------
#
# John Donnal
#
#
...
...
@@ -14,26 +9,26 @@ class timescaledb {
if
$facts
[
'platform'
]
==
'ubuntu'
{
apt::source
{
'postgresql'
:
location
=>
'http://apt.postgresql.org/pub/repos/apt/'
,
release
=>
"
${lsbdistcodename}
-pgdg"
,
repos
=>
'main'
,
key
=>
{
'id'
=>
'B97B0AFCAA1A47F044F244A07FCC7D46ACCC4CF8'
,
'server'
=>
'hkp://p80.pool.sks-keyservers.net:80'
apt::source
{
'postgresql'
:
location
=>
'http://apt.postgresql.org/pub/repos/apt/'
,
release
=>
"
${lsbdistcodename}
-pgdg"
,
repos
=>
'main'
,
key
=>
{
'id'
=>
'B97B0AFCAA1A47F044F244A07FCC7D46ACCC4CF8'
,
'server'
=>
'hkp://p80.pool.sks-keyservers.net:80'
}
}
apt::ppa
{
'ppa:timescale/timescaledb-ppa'
:
}
package
{
'timescaledb-postgresql-10'
:
ensure
=>
'present'
,
require
=>
[
Apt
::
Source
[
'postgresql'
],
Apt
::
Ppa
[
'ppa:timescale/timescaledb-ppa'
]]
}
class
{
'postgresql::server'
:
}
postgresql::server::config_entry
{
'shared_preload_libraries'
:
value
=>
'timescaledb'
,
}
}
apt::ppa
{
'ppa:timescale/timescaledb-ppa'
:
}
package
{
'timescaledb-postgresql-10'
:
ensure
=>
'present'
,
require
=>
[
Apt
::
Source
[
'postgresql'
],
Apt
::
Ppa
[
'ppa:timescale/timescaledb-ppa'
]]
}
class
{
'postgresql::server'
:
}
postgresql::server::config_entry
{
'shared_preload_libraries'
:
value
=>
'timescaledb'
,
}
}
else
{
class
{
'postgresql::globals'
:
# bindir => '/usr/local/pgsql/bin',
...
...
rpi_bootstrap.sh
View file @
fa6fe91b
...
...
@@ -10,6 +10,10 @@ set -e
#deb-src http://mirror.umd.edu/raspbian/raspbian/ stretch main contrib non-free rpi
#EOF
#echo "nameserver 172.31.33.1" > /etc/resolv.conf
echo
"SET LOCALE"
raspi-config
apt-get update
apt-get upgrade
-y
apt install puppet git r10k
-y
...
...
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