From d9ad6d211b86111bdca6b78891808a1bbdec86d2 Mon Sep 17 00:00:00 2001 From: Feng Pan Date: Thu, 27 Jul 2017 22:29:36 -0400 Subject: Add scope to configure_role_mappings resource calling Change-Id: Icf7f31b09d0f24f8c61235bd4e3dda43d3d47bc7 Signed-off-by: Feng Pan --- manifests/honeycomb.pp | 12 +++++------- 1 file changed, 5 insertions(+), 7 deletions(-) (limited to 'manifests/honeycomb.pp') diff --git a/manifests/honeycomb.pp b/manifests/honeycomb.pp index 25739f2..ef216c3 100644 --- a/manifests/honeycomb.pp +++ b/manifests/honeycomb.pp @@ -69,9 +69,8 @@ class fdio::honeycomb ( ensure => present, require => Package['vpp'], } - -> # Configuration of Honeycomb - file { 'honeycomb.json': + -> file { 'honeycomb.json': ensure => file, path => '/opt/honeycomb/config/honeycomb.json', # Set user:group owners @@ -80,8 +79,7 @@ class fdio::honeycomb ( # Use a template to populate the content content => template('fdio/honeycomb.json.erb'), } - ~> - service { 'honeycomb': + ~> service { 'honeycomb': ensure => running, enable => true, hasstatus => true, @@ -103,8 +101,8 @@ class fdio::honeycomb ( try_sleep => 30, path => '/usr/sbin:/usr/bin:/sbin:/bin', require => Service['honeycomb'], - }-> - exec { 'Check VPP was mounted into ODL operational DS': + } + -> exec { 'Check VPP was mounted into ODL operational DS': command => "curl --fail -u ${opendaylight_username}:${opendaylight_password} ${oper_mount_url} | grep ${node_id}", tries => 5, try_sleep => 30, @@ -112,7 +110,7 @@ class fdio::honeycomb ( } if !empty($interface_role_map) { - configure_role_mappings { $interface_role_map: + fdio::honeycomb::configure_role_mappings { $interface_role_map: honeycomb_username => $user, honeycomb_password => $password, honeycomb_url => "http://${bind_ip}:${rest_port}", -- cgit 1.2.3-korg