Skip to content

Commit

Permalink
Merge pull request #153 from mapuri/ansible
Browse files Browse the repository at this point in the history
vendor the recent ansible repo
  • Loading branch information
mapuri committed Jun 8, 2016
2 parents 7c60243 + 5a0635f commit 9a5bb0e
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 2 deletions.
2 changes: 2 additions & 0 deletions vendor/ansible/roles/ceph-install/defaults/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -23,13 +23,15 @@ debian_package_dependencies:
- python-pycurl
- hdparm
- ntp
- python-flask

redhat_package_dependencies:
- python-pycurl
- hdparm
- yum-plugin-priorities.noarch
- epel-release
- ntp
- python-flask

## Configure package origin
#
Expand Down
13 changes: 11 additions & 2 deletions vendor/ansible/roles/contiv_network/tasks/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,6 @@
shell: >
( iptables -L INPUT | grep "{{ netplugin_rule_comment }} ({{ item }})" ) || \
iptables -I INPUT 1 -p tcp --dport {{ item }} -j ACCEPT -m comment --comment "{{ netplugin_rule_comment }} ({{ item }})"
become: true
with_items:
- "{{ ofnet_master_port }}"
- "{{ ofnet_agent_port1 }}"
Expand Down Expand Up @@ -70,7 +69,17 @@
line: "{{ service_vip }} netmaster"
regexp: " netmaster$"
state: present
become: true

# XXX: remove this task once the following is resolved: https://github.com/contiv/netplugin/issues/275
- name: setup hostname alias
lineinfile:
dest: /etc/hosts
line: "{{ item.line }}"
regexp: "{{ item.regexp }}"
state: present
with_items:
- { line: '127.0.0.1 localhost', regexp: '^127\.0\.0\.1' }
- { line: '{{ node_addr }} {{ ansible_hostname }}', regexp: ' {{ ansible_hostname }}$' }

- name: copy environment file for netmaster
copy: src=netmaster dest=/etc/default/netmaster
Expand Down

0 comments on commit 9a5bb0e

Please sign in to comment.