Skip to content
This repository has been archived by the owner on May 14, 2019. It is now read-only.

not to setup the package if it is not required #140

Closed
wants to merge 2 commits into from
Closed

not to setup the package if it is not required #140

wants to merge 2 commits into from

Conversation

guessi
Copy link
Contributor

@guessi guessi commented Jan 14, 2015

if their enabled option is controlled by $is_controller or $is_storage, maybe we can just not setup them.

enabled => $is_controller,
sync_db => $is_controller,
mysql_module => '2.2',
}
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The network node needs this class in order to set authentication credentials in /etc/neutron/neutron.conf. Could you make the if $is_controller just surround the neutron::server::notifications class, and then you can calso add package_ensure => $is_controller here? As in

class { '::neutron::server':
   auth_host           => $::openstack::config::controller_address_management,
   auth_password       => $::openstack::config::neutron_password,
   database_connection => $::openstack::resources::connectors::neutron,
   package_ensure      => $is_controller,
   enabled             => $is_controller,
   sync_db             => $is_controller,
   mysql_module        => '2.2',
 }

if $is_controller {
  class { '::neutron::server::notifications':
    # ...

@guessi
Copy link
Contributor Author

guessi commented Apr 6, 2015

Hi @cmurphy ,
I've update the commit for neutron.pp as your suggestion, please check it again,
do you need to squash commits into one, please let me know, thanks for you suggestion :)

@cmurphy cmurphy closed this in c7d77de Apr 6, 2015
@cmurphy
Copy link
Contributor

cmurphy commented Apr 6, 2015

Thanks @guessi, I squashed this and merged it in c7d77de

@guessi guessi deleted the fix_package_install branch April 7, 2015 00:30
@guessi
Copy link
Contributor Author

guessi commented Apr 7, 2015

thanks :)

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants