diff options
author | Thomas Wiest <twiest@redhat.com> | 2014-10-22 11:12:46 -0400 |
---|---|---|
committer | Thomas Wiest <twiest@redhat.com> | 2014-10-23 12:51:52 -0400 |
commit | 5f9c7eb2d2ad44776d33197857dcd0afe693b5f5 (patch) | |
tree | 22a39c5589aa3f6a2a01f185041258e4fd69dea6 /roles/atomic_base/tasks | |
parent | 1057c69acdaf47e2bcd4b395069e3bc1bd9eec88 (diff) | |
download | openshift-5f9c7eb2d2ad44776d33197857dcd0afe693b5f5.tar.gz openshift-5f9c7eb2d2ad44776d33197857dcd0afe693b5f5.tar.bz2 openshift-5f9c7eb2d2ad44776d33197857dcd0afe693b5f5.tar.xz openshift-5f9c7eb2d2ad44776d33197857dcd0afe693b5f5.zip |
Added atomic aws host to cloud.rb
Diffstat (limited to 'roles/atomic_base/tasks')
-rw-r--r-- | roles/atomic_base/tasks/bash.yml | 13 | ||||
-rw-r--r-- | roles/atomic_base/tasks/cloud_user.yml | 6 | ||||
-rw-r--r-- | roles/atomic_base/tasks/main.yml | 4 | ||||
-rw-r--r-- | roles/atomic_base/tasks/ostree.yml | 18 | ||||
-rw-r--r-- | roles/atomic_base/tasks/system.yml | 3 |
5 files changed, 44 insertions, 0 deletions
diff --git a/roles/atomic_base/tasks/bash.yml b/roles/atomic_base/tasks/bash.yml new file mode 100644 index 000000000..6e577971a --- /dev/null +++ b/roles/atomic_base/tasks/bash.yml @@ -0,0 +1,13 @@ +--- +- name: Copy .bashrc + copy: src=bash/bashrc dest=/root/.bashrc owner=root group=root mode=0644 + +- name: Link to .profile to .bashrc + file: src=/root/.bashrc dest=/root/.profile owner=root group=root state=link + +- name: Setup Timezone [{{ oo_timezone }}] + file: > + src=/usr/share/zoneinfo/{{ oo_timezone }} + dest=/etc/localtime + owner=root + group=root state=link diff --git a/roles/atomic_base/tasks/cloud_user.yml b/roles/atomic_base/tasks/cloud_user.yml new file mode 100644 index 000000000..e7347fc3d --- /dev/null +++ b/roles/atomic_base/tasks/cloud_user.yml @@ -0,0 +1,6 @@ +--- +- name: Remove cloud-user account + user: name=cloud-user state=absent remove=yes force=yes + +- name: Remove cloud-user sudo + file: path=/etc/sudoers.d/90-cloud-init-users state=absent diff --git a/roles/atomic_base/tasks/main.yml b/roles/atomic_base/tasks/main.yml new file mode 100644 index 000000000..5d8e8571a --- /dev/null +++ b/roles/atomic_base/tasks/main.yml @@ -0,0 +1,4 @@ +--- +- include: system.yml +- include: bash.yml +- include: ostree.yml diff --git a/roles/atomic_base/tasks/ostree.yml b/roles/atomic_base/tasks/ostree.yml new file mode 100644 index 000000000..b9d366f1b --- /dev/null +++ b/roles/atomic_base/tasks/ostree.yml @@ -0,0 +1,18 @@ +--- +- name: Copy ostree repo config + copy: > + src=ostree/repo_config + dest=/ostree/repo/config + owner=root + group=root + mode=0644 + +- name: "WORK AROUND: Stat redhat repo file" + stat: path=/etc/yum.repos.d/redhat.repo + register: redhat_repo + +- name: "WORK AROUND: subscription manager failures" + file: > + path=/etc/yum.repos.d/redhat.repo + state=touch + when: redhat_repo.stat.exists == False diff --git a/roles/atomic_base/tasks/system.yml b/roles/atomic_base/tasks/system.yml new file mode 100644 index 000000000..e5cde427d --- /dev/null +++ b/roles/atomic_base/tasks/system.yml @@ -0,0 +1,3 @@ +--- +- name: Upload nofile limits.d file + copy: src=system/90-nofile.conf dest=/etc/security/limits.d/90-nofile.conf owner=root group=root mode=0644 |