diff options
Diffstat (limited to 'testing/puppet-fdio/manifests/honeycomb')
-rw-r--r-- | testing/puppet-fdio/manifests/honeycomb/install.pp | 18 | ||||
-rw-r--r-- | testing/puppet-fdio/manifests/honeycomb/service.pp | 12 |
2 files changed, 30 insertions, 0 deletions
diff --git a/testing/puppet-fdio/manifests/honeycomb/install.pp b/testing/puppet-fdio/manifests/honeycomb/install.pp new file mode 100644 index 0000000..2103cae --- /dev/null +++ b/testing/puppet-fdio/manifests/honeycomb/install.pp @@ -0,0 +1,18 @@ +# == Class fdio::honeycomb::install +# +# Manages the installation of fdio. +# +class fdio::honeycomb::install ( + $install_method = $::fdio::params::install_method, +) inherits fdio::install { + if $fdio::install_method == 'rpm' { + # Install the HC RPM + package { 'honeycomb': + ensure => present, + require => Yumrepo['fdio-master'], + } + } + else { + fail("Unknown install method: ${fdio::install_method}") + } +} diff --git a/testing/puppet-fdio/manifests/honeycomb/service.pp b/testing/puppet-fdio/manifests/honeycomb/service.pp new file mode 100644 index 0000000..58f7ae3 --- /dev/null +++ b/testing/puppet-fdio/manifests/honeycomb/service.pp @@ -0,0 +1,12 @@ +# == Class fdio::honeycomb::service +# +# Starts the honeycomb systemd or Upstart service. +# +class fdio::honeycomb::service { + service { 'honeycomb': + ensure => running, + enable => true, + hasstatus => true, + hasrestart => true, + } +} |