Skip to content

Commit

Permalink
add support for setting INHERIT_DATASTORE_ATTRs
Browse files Browse the repository at this point in the history
  • Loading branch information
jtriley committed Jul 22, 2015
1 parent d72a1b2 commit a96029e
Show file tree
Hide file tree
Showing 4 changed files with 11 additions and 0 deletions.
1 change: 1 addition & 0 deletions manifests/init.pp
Original file line number Diff line number Diff line change
Expand Up @@ -361,6 +361,7 @@
$hook_scripts_path = $one::params::hook_scripts_path,
$hook_scripts_pkgs = $one::params::hook_scripts_pkgs,
$hook_scripts = $one::params::hook_scripts,
$inherit_datastore_attrs = $one::params::inherit_datastore_attrs,
$oned_onegate_ip = $one::params::oned_onegate_ip,
$kickstart_network = $one::params::kickstart_network,
$kickstart_partition = $one::params::kickstart_partition,
Expand Down
1 change: 1 addition & 0 deletions manifests/oned/config.pp
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@
$hook_scripts = $one::hook_scripts,
$vm_hook_scripts = $one::vm_hook_scripts,
$host_hook_scripts = $one::host_hook_scripts,
$inherit_datastore_attrs = $one::inherit_datastore_attrs,
$oned_port = $one::oned_port,
$oned_db = $one::oned_db,
$oned_db_user = $one::oned_db_user,
Expand Down
3 changes: 3 additions & 0 deletions manifests/params.pp
Original file line number Diff line number Diff line change
Expand Up @@ -66,6 +66,9 @@
$xmlrpc_keepalive_max_conn = hiera('one::oned::xmlrpc_keepalive_max_conn', '30')
$xmlrpc_timeout = hiera('one::oned::xmlrpc_timeout', '15')

# OpenNebula INHERIT attrs
$inherit_datastore_attrs = hiera('one::oned::inherit_datastore_attrs', undef)

# Sunstone configuration parameters
$sunstone_listen_ip = hiera('one::oned::sunstone_listen_ip', '127.0.0.1')
$enable_support = hiera('one::oned::enable_support', 'yes')
Expand Down
6 changes: 6 additions & 0 deletions templates/oned.conf.erb
Original file line number Diff line number Diff line change
Expand Up @@ -869,6 +869,12 @@ INHERIT_DATASTORE_ATTR = "CEPH_USER"
INHERIT_DATASTORE_ATTR = "GLUSTER_HOST"
INHERIT_DATASTORE_ATTR = "GLUSTER_VOLUME"

<%- if @inherit_datastore_attrs != nil -%>
<%- @inherit_datastore_attrs.each do |attr| -%>
INHERIT_DATASTORE_ATTR = "<%= attr %>"
<%- end -%>
<%- end -%>

INHERIT_VNET_ATTR = "VLAN_TAGGED_ID"
INHERIT_VNET_ATTR = "BRIDGE_OVS"

Expand Down

0 comments on commit a96029e

Please sign in to comment.