Update recipes to be rubocop compliant
- Adjust .rubocop.yml to include recipes/** - Complete rubocop compliancy for recipes/*.rb Change-Id: Id5b5ac26f74046085e3f07d1696189061a03ee2e Addresses: blueprint rubocop-for-network
This commit is contained in:
@@ -4,10 +4,10 @@ AllCops:
|
|||||||
- metadata.rb
|
- metadata.rb
|
||||||
- attributes/**
|
- attributes/**
|
||||||
- spec/**
|
- spec/**
|
||||||
|
- recipes/**
|
||||||
|
|
||||||
Excludes:
|
Excludes:
|
||||||
- files/**
|
- files/**
|
||||||
- recipes/**
|
|
||||||
- templates/**
|
- templates/**
|
||||||
|
|
||||||
# UTF-8 headers not generally in these files
|
# UTF-8 headers not generally in these files
|
||||||
|
|||||||
@@ -107,11 +107,11 @@ identity_admin_endpoint = endpoint 'identity-admin'
|
|||||||
auth_uri = ::URI.decode identity_endpoint.to_s
|
auth_uri = ::URI.decode identity_endpoint.to_s
|
||||||
|
|
||||||
db_user = node['openstack']['db']['network']['username']
|
db_user = node['openstack']['db']['network']['username']
|
||||||
db_pass = get_password "db", 'neutron'
|
db_pass = get_password 'db', 'neutron'
|
||||||
sql_connection = db_uri('network', db_user, db_pass)
|
sql_connection = db_uri('network', db_user, db_pass)
|
||||||
|
|
||||||
api_endpoint = endpoint 'network-api'
|
api_endpoint = endpoint 'network-api'
|
||||||
service_pass = get_password "service", 'openstack-network'
|
service_pass = get_password 'service', 'openstack-network'
|
||||||
|
|
||||||
if node['openstack']['network']['api']['bind_interface'].nil?
|
if node['openstack']['network']['api']['bind_interface'].nil?
|
||||||
bind_address = api_endpoint.host
|
bind_address = api_endpoint.host
|
||||||
|
|||||||
@@ -57,7 +57,7 @@ template '/etc/neutron/l3_agent.ini' do
|
|||||||
notifies :restart, 'service[neutron-l3-agent]', :immediately
|
notifies :restart, 'service[neutron-l3-agent]', :immediately
|
||||||
end
|
end
|
||||||
|
|
||||||
unless ['nicira', 'plumgrid', 'bigswitch', 'linuxbridge'].include?(main_plugin)
|
unless %w(nicira plumgrid bigswitch linuxbridge).include?(main_plugin)
|
||||||
# See http://docs.openstack.org/trunk/openstack-network/admin/content/install_neutron-l3.html
|
# See http://docs.openstack.org/trunk/openstack-network/admin/content/install_neutron-l3.html
|
||||||
ext_bridge = node['openstack']['network']['l3']['external_network_bridge']
|
ext_bridge = node['openstack']['network']['l3']['external_network_bridge']
|
||||||
ext_bridge_iface = node['openstack']['network']['l3']['external_network_bridge_interface']
|
ext_bridge_iface = node['openstack']['network']['l3']['external_network_bridge_interface']
|
||||||
|
|||||||
@@ -43,7 +43,7 @@ end
|
|||||||
# Migrate network database
|
# Migrate network database
|
||||||
# If the database has never migrated, make the current version of alembic_version to havana,
|
# If the database has never migrated, make the current version of alembic_version to havana,
|
||||||
# else migrate the database to latest version.
|
# else migrate the database to latest version.
|
||||||
bash "migrate network database" do
|
bash 'migrate network database' do
|
||||||
plugin_config_file = node['openstack']['network']['plugin_config_file']
|
plugin_config_file = node['openstack']['network']['plugin_config_file']
|
||||||
migrate_command = "neutron-db-manage --config-file /etc/neutron/neutron.conf --config-file #{plugin_config_file}"
|
migrate_command = "neutron-db-manage --config-file /etc/neutron/neutron.conf --config-file #{plugin_config_file}"
|
||||||
code <<-EOF
|
code <<-EOF
|
||||||
|
|||||||
Reference in New Issue
Block a user