Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- class jira::install {
- require jira
- require deploy
- user { $jira::user:
- comment => 'Jira daemon account',
- shell => '/bin/true',
- home => $jira::homedir,
- password => '*',
- password_min_age => '0',
- password_max_age => '99999',
- managehome => true,
- } ->
- file { $jira::installdir:
- ensure => 'directory',
- owner => $jira::user,
- group => $jira::group,
- }
- file { "/etc/cron.d/jira_mail_perms":
- mode => 644,
- owner => root,
- group => root,
- source => "puppet:///modules/jira/jira_mail_perms"
- }
- deploy::file { "atlassian-${jira::product}-${jira::version}.${jira::format}":
- target => "${jira::installdir}/atlassian-${jira::product}-${jira::version}-standalone",
- url => $jira::downloadURL,
- strip => true,
- download_timout => 1800,
- owner => $jira::user,
- group => $jira::group,
- notify => Exec["chown_${jira::webappdir}"],
- } ->
- file { $jira::homedir:
- ensure => 'directory',
- owner => $jira::user,
- group => $jira::group,
- } ->
- file { "${jira::homedir}/import":
- ensure => 'directory',
- mode => 777
- } ->
- file { "${jira::homedir}/import/mail":
- ensure => 'directory',
- mode => 777
- } ->
- exec { "chown_${jira::webappdir}":
- command => "/bin/chown -R ${jira::user}:${jira::group} ${jira::webappdir}",
- refreshonly => true,
- subscribe => User[$jira::user]
- } ->
- file { "${jira::installdir}/atlassian-${jira::product}-${jira::version}-standalone/lib/mysql-connector-java-5.1.31-bin.jar":
- mode => 644,
- owner => root,
- group => root,
- source => "puppet:///modules/jira/mysql-connector-java-5.1.31-bin.jar"
- } ->
- file { "${jira::webappdir}/logs/old":
- ensure => 'directory',
- owner => $jira::user,
- group => $jira::group,
- }
- file { '/etc/init.d/jira':
- content => template('jira/etc/rc.d/init.d/jira.erb'),
- mode => '0755',
- }
- file { '/etc/aliases':
- mode => 644,
- owner => root,
- group => root,
- source => "puppet:///modules/jira/aliases"
- }
- logrotate::rule { 'jira_catalina':
- ensure => 'present',
- path => "${jira::webappdir}/logs/catalina.*",
- olddir => "${jira::webappdir}/logs/old",
- rotate => 30,
- rotate_every => 'day',
- size => '500M',
- compress => true,
- copytruncate => true,
- missingok => true,
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement