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
733fb87e
authored
Oct 02, 2019
by
source_reader
Browse files
Options
_('Browse Files')
Download
Email Patches
Plain Diff
bug fixes
parent
8da41999
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
14 additions
and
5 deletions
modules/nginx/manifests/pi.pp
modules/static_sites/manifests/init.pp
modules/nginx/manifests/pi.pp
View file @
733fb87e
class
nginx::pi
{
class
nginx::pi
{
notice
(
"including pi nginx"
)
notice
(
"including pi nginx"
)
$dirs
=
[
'/usr/lib/nginx'
,
'/usr/lib/nginx/modules'
,
$dirs
=
[
'/usr/lib/nginx'
,
'/usr/share/nginx'
,
'/usr/share/nginx/html'
]
'/usr/share/nginx'
,
'/var/lib/nginx'
]
file
{
$dirs
:,
file
{
$dirs
:,
owner
=>
root
,
owner
=>
root
,
group
=>
root
,
group
=>
root
,
ensure
=>
directory
ensure
=>
directory
}
}
file
{
'/var/log/nginx'
:
owner
=>
www
-
data
,
group
=>
adm
,
ensure
=>
directory
}
file
{
'/etc/nginx/nginx.conf'
:
file
{
'/etc/nginx/nginx.conf'
:
source
=>
'puppet:///modules/nginx/nginx.conf'
,
source
=>
'puppet:///modules/nginx/nginx.conf'
,
owner
=>
root
,
owner
=>
root
,
...
@@ -39,7 +44,7 @@ class nginx::pi{
...
@@ -39,7 +44,7 @@ class nginx::pi{
ensure
=>
directory
,
ensure
=>
directory
,
owner
=>
root
,
owner
=>
root
,
group
=>
root
,
group
=>
root
,
source
=>
'puppet:///modules/nginx/pi/passenger.conf'
source
=>
'puppet:///modules/nginx/pi/passenger.conf'
,
require
=>
File
[
'/etc/nginx/conf.d'
]
require
=>
File
[
'/etc/nginx/conf.d'
]
}
}
...
...
modules/static_sites/manifests/init.pp
View file @
733fb87e
...
@@ -7,7 +7,11 @@
...
@@ -7,7 +7,11 @@
#
#
class
static_sites
{
class
static_sites
{
file
{
'/var/www'
:
ensure
=>
directory
,
owner
=>
root
,
group
=>
root
}
# The Angular Frontend Site
# The Angular Frontend Site
file
{
'/var/www/frontend'
:
file
{
'/var/www/frontend'
:
ensure
=>
directory
,
ensure
=>
directory
,
...
...
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