Skip to content

Commit

Permalink
add logon config file
Browse files Browse the repository at this point in the history
  • Loading branch information
webhat committed Dec 21, 2015
1 parent a4b9621 commit 4d1c58f
Showing 1 changed file with 13 additions and 0 deletions.
13 changes: 13 additions & 0 deletions manifests/classes/nginx.pp
Original file line number Diff line number Diff line change
Expand Up @@ -17,4 +17,17 @@
require => File['nginx.conf'],
}

file { 'logon':
ensure => 'present',
notify => Service['nginx'],
path => '/etc/nginx/sites-available/logon',
mode => '0644',
content => template('oplerno_nginx/logon.erb'),
before => Service['nginx'],
}

file { '/etc/nginx/sites-enabled/logon':
ensure => 'link',
target => '/etc/nginx/sites-available/logon',
require => File['logon'],
}

0 comments on commit 4d1c58f

Please sign in to comment.