-
Notifications
You must be signed in to change notification settings - Fork 107
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* yum makecache -> yum makecache fast #536 * Added versions for docker-ce & docker-ce-cli #536 * Added property 'download_done_flag_expire_minutes' #536 * enabled-system-repos.txt in /var/tmp #536 * Clean up temporary files #536 * Added execution time #536
- Loading branch information
Showing
13 changed files
with
59 additions
and
36 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
--- | ||
# This playbook is empty by purpose, just to enable repository role in configuration/feature-mapping | ||
# to populate defaults/configuration to Ansible vars | ||
- hosts: [] | ||
tasks: [] |
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 |
---|---|---|
|
@@ -13,5 +13,5 @@ gpgcheck=0 | |
EOF | ||
|
||
yum-config-manager --enable epirepo | ||
yum makecache | ||
yum repolist | ||
yum makecache fast | ||
yum repolist |
2 changes: 1 addition & 1 deletion
2
...nsible/playbooks/roles/repository/files/client/RedHat/create-enabled-system-repos-list.sh
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
4 changes: 2 additions & 2 deletions
4
...a/common/ansible/playbooks/roles/repository/files/client/RedHat/disable-epirepo-client.sh
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,5 +1,5 @@ | ||
#!/bin/bash -eu | ||
|
||
yum-config-manager --disable epirepo | ||
yum makecache | ||
yum repolist | ||
yum clean all --disablerepo='*' --enablerepo=epirepo | ||
yum repolist |
5 changes: 2 additions & 3 deletions
5
...ata/common/ansible/playbooks/roles/repository/files/client/RedHat/disable-system-repos.sh
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,10 +1,9 @@ | ||
#!/bin/bash -eu | ||
|
||
REPOS_LIST_FILE=/tmp/enabled-system-repos.txt | ||
REPOS_LIST_FILE=/var/tmp/enabled-system-repos.txt | ||
|
||
cat $REPOS_LIST_FILE | while read repository | ||
do | ||
echo "Disabling repository: $repository" | ||
yum-config-manager --disable $repository | ||
done | ||
|
||
done |
4 changes: 2 additions & 2 deletions
4
...data/common/ansible/playbooks/roles/repository/files/client/RedHat/enable-system-repos.sh
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,9 +1,9 @@ | ||
#!/bin/bash -eu | ||
|
||
REPOS_LIST_FILE=/tmp/enabled-system-repos.txt | ||
REPOS_LIST_FILE=/var/tmp/enabled-system-repos.txt | ||
|
||
cat $REPOS_LIST_FILE | while read repository | ||
do | ||
echo "Enabling repository: $repository" | ||
yum-config-manager --enable $repository | ||
done | ||
done |
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
13 changes: 12 additions & 1 deletion
13
core/src/epicli/data/common/ansible/playbooks/roles/repository/tasks/teardown.yml
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,2 +1,13 @@ | ||
- name: Re-enable system repositories and disable epirepo | ||
include_tasks: "{{ ansible_os_family }}/teardown.yml" | ||
include_tasks: "{{ ansible_os_family }}/teardown.yml" | ||
|
||
- name: Clean up temporary files | ||
file: | ||
state: absent | ||
path: "{{ path }}" | ||
loop: | ||
- /tmp/epi-download-requirements | ||
- /tmp/epi-repository-setup-scripts | ||
- /var/tmp/enabled-system-repos.txt | ||
loop_control: | ||
index_var: path |
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