]> git.apps.os.sepia.ceph.com Git - ceph-ansible.git/commitdiff
Ability to generate repos for localmirror
authorbdastur <bdastur@gmail.com>
Mon, 14 Mar 2016 20:26:16 +0000 (13:26 -0700)
committerbdastur <bdastur@gmail.com>
Mon, 14 Mar 2016 20:26:16 +0000 (13:26 -0700)
group_vars/all.sample
localrepo-site.yml.sample [new file with mode: 0644]

index afaa9b8875875c781f400af9f8b674678a02b566..445c57c2fe2baefc0362cc2128c3c68f7bbd83a5 100644 (file)
@@ -67,6 +67,10 @@ dummy:
 # you will get whatever version of Ceph is included in your Linux distro.
 #
 #ceph_use_distro_backports: false # DEBIAN ONLY
+# Custom repo files when using local mirror (option ceph_origin: 'distro')
+# repolist:
+#  - { src: "/<path to repo file>/localmirror_ceph.repo", dest: "/etc/yum.repos.d/ceph.repo" }
+#
 
 
 # STABLE
diff --git a/localrepo-site.yml.sample b/localrepo-site.yml.sample
new file mode 100644 (file)
index 0000000..591bbe0
--- /dev/null
@@ -0,0 +1,48 @@
+---
+# Sample Playbook for local mirrors.
+# Additional/optiona step to generate repos.d file for local mirrors.
+# Defines deployment design and assigns role to server groups
+
+- hosts: *
+  max_fail_percentage: 0
+  become: True
+  tasks:
+    - name: Copy User provided repo files to /etc/yum.repos.d/
+      copy:
+        src: "{{ item.src }}"
+        dest: "{{ item.dest }}"
+        owner: root
+        group: root
+      with_items:
+        - "{{ repolist }}"
+
+- hosts: mons
+  become: True
+  roles:
+  - ceph-mon
+
+- hosts: agents
+  become: True
+  roles:
+  - ceph-agent
+
+- hosts: osds
+  become: True
+  roles:
+  - ceph-osd
+
+- hosts: mdss
+  become: True
+  roles:
+  - ceph-mds
+
+- hosts: rgws
+  become: True
+  roles:
+  - ceph-rgw
+
+- hosts: restapis
+  become: True
+  roles:
+  - ceph-restapi
+