Skip to content

Instantly share code, notes, and snippets.

@fiddyspence
Last active December 10, 2015 10:18
Show Gist options
  • Save fiddyspence/4419914 to your computer and use it in GitHub Desktop.
Save fiddyspence/4419914 to your computer and use it in GitHub Desktop.
link
[root@centos62 ~]# cat tomcat.pp
$apache_tomcat_log = "/var/log/tomcat"
$apache_tomcat_log_mount = "/usr/local/tomcat/logs"
class apache_tomcat::log {
file { $apache_tomcat_log_mount:
ensure => 'link',
force => true,
target => $apache_tomcat_log,
# require => Class["apache_tomcat::config"]
}
}
include apache_tomcat::log
[root@centos62 ~]# puppet apply tomcat.pp
notice: Finished catalog run in 0.08 seconds
[root@centos62 ~]# puppet apply tomcat.pp
notice: Finished catalog run in 0.09 seconds
file { '/usr/local/tomcat/logs':
ensure => 'link',
ctime => 'Mon Dec 31 13:53:57 +0000 2012',
group => '0',
mode => '777',
mtime => 'Mon Dec 31 13:53:57 +0000 2012',
owner => '0',
target => '/var/log/tomcat',
type => 'link',
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment