-
Notifications
You must be signed in to change notification settings - Fork 10
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
support centos networking containers.
Partial-Bug: #1554943 changes done: 1. add new variable for compute_redhat packages and nova-compute services 2. identify centos as systemd instead of upstart 3. add docker installation method for Redhat family PATCH 2: 1. address review comments 2. moved to a single variable for compute packages PATCH 3: 1. addressing missed review comment PATCH 4: 1. put correct libvirt binary name Change-Id: I1684ae5eb40e743afcbe517ade72a1a18363fd31
- Loading branch information
Dheeraj Gautam
committed
Jul 21, 2017
1 parent
bc0b0e3
commit 943aeab
Showing
11 changed files
with
81 additions
and
9 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,27 @@ | ||
--- | ||
- name: Add contrail apt repository if required | ||
apt_repository: | ||
repo: "deb {{ contrail_apt_repo }} ./" | ||
state: present | ||
register: apt_repo_added | ||
when: contrail_apt_repo is defined and contrail_apt_repo != "" | ||
ignore_errors: yes | ||
|
||
- name: Allow unauthenticated packages for contrail packages to work | ||
copy: content='APT::Get::AllowUnauthenticated "true";' dest=/etc/apt/apt.conf.d/99allowunauth | ||
when: contrail_apt_repo is defined and contrail_apt_repo != "" | ||
|
||
# If installing contrail_apt_repo entry, use higher priority for that to make | ||
# sure all packages use the contrail repo | ||
- name: Pin contrail apt repo "contrail" release to priority 999 | ||
copy: src=apt-preferences.conf dest=/etc/apt/preferences.d/contrail_repo.pref | ||
when: contrail_apt_repo is defined and contrail_apt_repo != "" and apt_repo_added.get('changed',false) | ||
|
||
- name: Run apt-get update | ||
apt: update_cache=yes | ||
when: contrail_apt_repo is defined and contrail_apt_repo != "" and apt_repo_added.get('changed',false) | ||
ignore_errors: yes | ||
|
||
- name: install docker using package | ||
package: name="{{ docker_package_name }}" state=installed | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
--- | ||
- name: "Add contrail yum repo {{contrail_image_id}}" | ||
yum_repository: | ||
name: "{{contrail_image_id}}" | ||
file: cobbler-config | ||
description: "Contrail Package Repo" | ||
baseurl: "{{contrail_yum_repo}}" | ||
priority: 1 | ||
gpgcheck: no | ||
|
||
- name: install docker using package | ||
yum: | ||
name: "{{ docker_package_name }}" | ||
state: latest |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,6 @@ | ||
--- | ||
- name: restart nova-compute | ||
service: name=nova-compute state=restarted | ||
service: name="{{nova_compute_service}}" state=restarted | ||
|
||
- name: restart libvirt | ||
service: name=libvirt-bin state=restarted | ||
service: name="{{libvirt_service}}" state=restarted |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters