Last active
August 29, 2015 13:55
-
-
Save japsu/8709797 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
class tracon::atlassian { | |
include nginx | |
file { | |
"/opt/atlassian": | |
ensure => directory, | |
owner => 'root', | |
group => 'root', | |
mode => 0770; | |
} | |
define instance( | |
$listen, | |
$user | |
) { | |
nginx::proxy { | |
$title: | |
target => "http://$listen"; | |
} | |
group { | |
$user: | |
ensure => present; | |
} | |
user { | |
$user: | |
ensure => present, | |
gid => $user, | |
managehome => true, | |
home => "/srv/www/$title", | |
shell => "/bin/bash"; | |
} | |
file { | |
"/srv/www/$title": | |
ensure => directory, | |
owner => $user, | |
group => $user, | |
mode => 0770; | |
} | |
} | |
} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
node kurikka { | |
include tracon::atlassian | |
tracon::atlassian::instance { | |
'confluence.tracon.fi': | |
user => 'conflu', | |
listen => '127.0.0.1:9011'; | |
'jira.tracon.fi': | |
user => 'jira', | |
listen => '127.0.0.1:9012'; | |
'crowd.tracon.fi': | |
user => 'crowd', | |
listen => '127.0.0.1:9013'; | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment