Merge pull request #107 from andymcc/maas_fqdn

Allow an fqdn extension to be specified for MaaS purposes
This commit is contained in:
Christopher H. Laco 2014-09-15 19:33:36 -05:00
commit 7543ddb5c3
4 changed files with 7 additions and 4 deletions

View File

@ -117,7 +117,10 @@ maas_monitoring_zones:
- mzlon
- mzhkg
maas_repo_version: v9.0.0
# Specify the maas_fqdn_extension, defaults to empty string.
# This will be appended to the inventory_name of a host for MaaS purposes.
# The inventory name + maas_fqdn_extension must match the entity name in MaaS
# maas_fqdn_extension: .example.com
## Neutron Options
neutron_container_mysql_password:

View File

@ -20,7 +20,7 @@
- raxmon_cli
- raxmon_agent_install
vars:
entity_name: "{{ inventory_hostname }}"
entity_name: "{{ inventory_hostname }}{{ maas_fqdn_extension|default('') }}"
- hosts: keystone[0]
user: root

View File

@ -14,7 +14,7 @@
# limitations under the License.
- name: Get entity ID for physical_host
shell: raxmon-entities-list | grep "label={{ inventory_hostname|quote }} " | sed -e 's/^.* id=\(.*\) label=.*$/\1/g'
shell: raxmon-entities-list | grep "label={{ inventory_hostname|quote }}{{ maas_fqdn_extension|default('') }} " | sed -e 's/^.* id=\(.*\) label=.*$/\1/g'
register: entity_id
- name: Validate if check exists

View File

@ -14,7 +14,7 @@
# limitations under the License.
- name: Get entity ID for physical_host
shell: raxmon-entities-list | grep "label={{ physical_host|quote }} " | sed -e 's/^.* id=\(.*\) label=.*$/\1/g'
shell: raxmon-entities-list | grep "label={{ physical_host|quote }}{{ maas_fqdn_extension|default('') }} " | sed -e 's/^.* id=\(.*\) label=.*$/\1/g'
register: entity_id
delegate_to: "{{ physical_host }}"