Puppet Class: fluentd::install_repo::apt
- Defined in:
- manifests/install_repo/apt.pp
Overview
Class: fluentd::install_repo::apt ()
6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 |
# File 'manifests/install_repo/apt.pp', line 6
class fluentd::install_repo::apt () {
# Sorry for the different naming of the Rpository between debian and redhat.
# But I dont want rename it to avoid a duplication.
apt::source { 'treasure-data':
location => "http://packages.treasure-data.com/debian",
release => "lucid",
repos => "contrib",
include_src => false,
}
file { '/tmp/packages.treasure-data.com.key':
ensure => file,
source => 'puppet:///modules/fluentd/packages.treasure-data.com.key'
}->
exec { "import gpg key Treasure Data":
command => "/bin/cat /tmp/packages.treasure-data.com.key | apt-key add -",
unless => "/usr/bin/apt-key list | grep -q 'Treasure Data'",
notify => Class['::apt::update'],
}
}
|