]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph-cm-ansible.git/commitdiff
Help users locate cobbler's web UI 69/head
authorZack Cerza <zack@redhat.com>
Wed, 8 Jul 2015 21:39:52 +0000 (15:39 -0600)
committerZack Cerza <zack@redhat.com>
Thu, 9 Jul 2015 15:36:37 +0000 (09:36 -0600)
Signed-off-by: Zack Cerza <zack@redhat.com>
roles/cobbler/defaults/main.yml
roles/cobbler/tasks/upload_templates.yml
roles/cobbler/templates/httpd/index.html [new file with mode: 0644]

index eae6ceb9bd2688865c76f39e6e1e8fe990ab4c5b..a8ff0d4d7a672ce361f783f2bd6590ae0a865f4b 100644 (file)
@@ -4,7 +4,7 @@ iso_dir: /var/lib/cobbler/isos
 # Mount point to use for ISOs during import
 iso_mount: /mnt/iso
 
-etc_files:
+etc_cobbler_files:
  - users.digest
 
 settings:
index 826a4a0617be9432023f557de75f440a4494d250..1c5a82cc25b43b4b411babf3da7c60a0f9bf8a7f 100644 (file)
@@ -1,12 +1,22 @@
 ---
-- name: Upload items in /etc
+- name: Upload index.html template
+  template:
+    src: "httpd/index.html"
+    dest: "/var/www/html/"
+    owner: root
+    group: root
+    mode: 0644
+  tags:
+    - httpd
+
+- name: Upload items in /etc/cobbler
   template:
     src: "etc/{{ item }}"
     dest: "/etc/cobbler/{{ item }}"
     owner: root
     group: root
     mode: 0644
-  with_items: etc_files
+  with_items: etc_cobbler_files
   tags:
     - etc
 
diff --git a/roles/cobbler/templates/httpd/index.html b/roles/cobbler/templates/httpd/index.html
new file mode 100644 (file)
index 0000000..2ae1a97
--- /dev/null
@@ -0,0 +1,8 @@
+<!--
+{{ ansible_managed }}
+-->
+<html>
+  <body>
+    <a href="https://{{ ansible_fqdn }}/cobbler_web/">Cobbler!</a>
+  </body>
+</html>