Skip to content

Instantly share code, notes, and snippets.

@jfryman
Created May 19, 2011 23:13
Show Gist options
  • Save jfryman/982008 to your computer and use it in GitHub Desktop.
Save jfryman/982008 to your computer and use it in GitHub Desktop.
class rsyslog {
        class aptsetup {
                file { "evax-rsyslog-lucid.list":
                                ensure => "file",
                                owner => "root",
                                group => "root",
                                mode => 0644,
                                path => "/etc/apt/sources.list.d/evax-rsyslog-lucid.list",
                                source => "puppet://$puppetserver/modules/rsyslog/evax-rsyslog-lucid.list",
                        }
                        exec { rsyslog-apt-update:
                                command => "/usr/bin/apt-get -q -q update",
                                refreshonly => true,
                                subscribe => File["evax-rsyslog-lucid.list"],
                        }
                        # Need to think through best way to set sources.list to get a modern version of rsyslog-gnutls installed.
                        package { "rsyslog-gnutls":
                                ensure => "5.6.3-0ubuntu1~lucid1",
require => Exec['rebuild-inetd'],
                        }
        }
        include rsyslog::aptsetup
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment