From 0fe8bf872d2983c1f2e4871477c529ea084e8259 Mon Sep 17 00:00:00 2001 From: Olivier Bourdon Date: Tue, 12 Jul 2016 09:34:09 +0200 Subject: [PATCH] Add more readability Uniformization of Puppet dependencies/chaining Change-Id: I709d2ee6af0c1cdcc4583fb8ac06624f41eb97da --- .../puppet/modules/plugin_zabbix/manifests/agent.pp | 9 +++------ 1 file changed, 3 insertions(+), 6 deletions(-) diff --git a/deployment_scripts/puppet/modules/plugin_zabbix/manifests/agent.pp b/deployment_scripts/puppet/modules/plugin_zabbix/manifests/agent.pp index b8d6fa2..d58dae2 100644 --- a/deployment_scripts/puppet/modules/plugin_zabbix/manifests/agent.pp +++ b/deployment_scripts/puppet/modules/plugin_zabbix/manifests/agent.pp @@ -38,21 +38,18 @@ class plugin_zabbix::agent( } -> package { $plugin_zabbix::params::get_pkg: ensure => present - } - -> + } -> file { $plugin_zabbix::params::agent_include: ensure => directory, mode => '0500', owner => 'zabbix', group => 'zabbix' - } - -> + } -> file { $plugin_zabbix::params::agent_config: ensure => present, content => template($plugin_zabbix::params::agent_config_template), notify => Service[$plugin_zabbix::params::agent_service] - } - -> + } -> service { $plugin_zabbix::params::agent_service: ensure => running, enable => true,