Browse Source

ready for install

Chris Mague 6 năm trước cách đây
mục cha
commit
789df01676
2 tập tin đã thay đổi với 21 bổ sung8 xóa
  1. 20 7
      ansible/playbook.yml
  2. 1 1
      security.tf

+ 20 - 7
ansible/playbook.yml

@@ -37,12 +37,12 @@
 
     - name: create re home dir
       file:
-        state=directory
-        path="/redis"
+        state: directory
+        path: "/redis"
     - name: create ephemeral filesystem
       filesystem:
-        fstype=ext4
-        dev="/dev/xvdh"
+        fstype: ext4
+        dev: "/dev/xvdh"
     - name: mount ephemeral dir filesystem
       mount:
         name: /redis/ephemeral
@@ -51,8 +51,8 @@
         state: mounted
     - name: create persistant filesystem
       filesystem:
-        fstype=ext4
-        dev="/dev/xvdj"
+        fstype: ext4
+        dev: "/dev/xvdj"
     - name: mount persistant dir filesystem
       mount:
         name: /redis/persistant
@@ -60,4 +60,17 @@
         fstype: ext4
         state: mounted
 
-
+  tasks:
+    - name: create download directory
+      file:
+        state: directory
+        path: "/var/tmp/re-download"
+        #    - name: download RE software
+        #      get_url:
+        #        url: https://s3.amazonaws.com/redis-enterprise-software-downloads/5.4.2/redislabs-5.4.2-20-bionic-amd64.tar
+        #        dest: /var/tmp/re-download/redislabs-5.4.2-20-bionic-amd64.tar
+    - name: Unarchive software
+      unarchive: 
+        src: "https://s3.amazonaws.com/redis-enterprise-software-downloads/5.4.2/redislabs-5.4.2-20-bionic-amd64.tar"
+        dest: /var/tmp/re-download
+        remote_src: yes

+ 1 - 1
security.tf

@@ -63,7 +63,7 @@ resource "aws_security_group" "re" {
     from_port   = 8443
     to_port     = 8443
     protocol    = "tcp"
-    cidr_blocks = [var.vpc-cidr]
+    cidr_blocks = var.open-nets
   }
 
   # For nginx <->cnm_http/cm communications on the same host only. Ports are bound to loopback adapter.