summaryrefslogtreecommitdiff
path: root/roles
diff options
context:
space:
mode:
authorlijia <[email protected]>2020-01-06 18:37:29 +0800
committerlijia <[email protected]>2020-01-06 18:37:29 +0800
commit76d3a99a062c838873e5b48dd26d4017014f7bfa (patch)
tree7bb399088ea94eadcacbd3fbd984c12a3a80dc46 /roles
parent59dd9b03bc2c639ee1db1d26ec7d7bae77db9c3b (diff)
升级依赖的rpm包, 修改配置文件.
Diffstat (limited to 'roles')
-rw-r--r--roles/sled-mcn0/files/rpm/bind9-v9_14_9_with_config.tgzbin0 -> 6336039 bytes
-rw-r--r--roles/sled-mcn0/files/rpm/houyi-plug-1.0.0.2a4c05f-1.el7.x86_64.rpmbin10124 -> 0 bytes
-rw-r--r--roles/sled-mcn0/files/rpm/houyi-plug-1.0.0.9b70834-1.el7.x86_64.rpmbin0 -> 12092 bytes
-rw-r--r--roles/sled-mcn0/files/rpm/net_flood-2.0.3.2e9450d-1.el7.x86_64.rpmbin0 -> 24308 bytes
-rw-r--r--roles/sled-mcn0/files/rpm/net_flood-2.0.3.6ae51f2-1.el7.x86_64.rpmbin24312 -> 0 bytes
-rw-r--r--roles/sled-mcn0/files/rpm/sapp-4.0.7.06731c3-1.el7.x86_64.rpmbin376492 -> 0 bytes
-rw-r--r--roles/sled-mcn0/files/rpm/sapp-4.0.7.f31c99c-1.el7.x86_64.rpmbin0 -> 377012 bytes
-rw-r--r--roles/sled-mcn0/tasks/main.yml22
-rw-r--r--roles/sled-mcn0/templates/houyi_plug_arp_network.conf.j28
-rw-r--r--roles/sled-mcn0/templates/houyi_plug_static_arp.conf.j23
10 files changed, 24 insertions, 9 deletions
diff --git a/roles/sled-mcn0/files/rpm/bind9-v9_14_9_with_config.tgz b/roles/sled-mcn0/files/rpm/bind9-v9_14_9_with_config.tgz
new file mode 100644
index 0000000..ce33380
--- /dev/null
+++ b/roles/sled-mcn0/files/rpm/bind9-v9_14_9_with_config.tgz
Binary files differ
diff --git a/roles/sled-mcn0/files/rpm/houyi-plug-1.0.0.2a4c05f-1.el7.x86_64.rpm b/roles/sled-mcn0/files/rpm/houyi-plug-1.0.0.2a4c05f-1.el7.x86_64.rpm
deleted file mode 100644
index 935ac1b..0000000
--- a/roles/sled-mcn0/files/rpm/houyi-plug-1.0.0.2a4c05f-1.el7.x86_64.rpm
+++ /dev/null
Binary files differ
diff --git a/roles/sled-mcn0/files/rpm/houyi-plug-1.0.0.9b70834-1.el7.x86_64.rpm b/roles/sled-mcn0/files/rpm/houyi-plug-1.0.0.9b70834-1.el7.x86_64.rpm
new file mode 100644
index 0000000..55d1d9c
--- /dev/null
+++ b/roles/sled-mcn0/files/rpm/houyi-plug-1.0.0.9b70834-1.el7.x86_64.rpm
Binary files differ
diff --git a/roles/sled-mcn0/files/rpm/net_flood-2.0.3.2e9450d-1.el7.x86_64.rpm b/roles/sled-mcn0/files/rpm/net_flood-2.0.3.2e9450d-1.el7.x86_64.rpm
new file mode 100644
index 0000000..2175410
--- /dev/null
+++ b/roles/sled-mcn0/files/rpm/net_flood-2.0.3.2e9450d-1.el7.x86_64.rpm
Binary files differ
diff --git a/roles/sled-mcn0/files/rpm/net_flood-2.0.3.6ae51f2-1.el7.x86_64.rpm b/roles/sled-mcn0/files/rpm/net_flood-2.0.3.6ae51f2-1.el7.x86_64.rpm
deleted file mode 100644
index 405ac96..0000000
--- a/roles/sled-mcn0/files/rpm/net_flood-2.0.3.6ae51f2-1.el7.x86_64.rpm
+++ /dev/null
Binary files differ
diff --git a/roles/sled-mcn0/files/rpm/sapp-4.0.7.06731c3-1.el7.x86_64.rpm b/roles/sled-mcn0/files/rpm/sapp-4.0.7.06731c3-1.el7.x86_64.rpm
deleted file mode 100644
index 03772b3..0000000
--- a/roles/sled-mcn0/files/rpm/sapp-4.0.7.06731c3-1.el7.x86_64.rpm
+++ /dev/null
Binary files differ
diff --git a/roles/sled-mcn0/files/rpm/sapp-4.0.7.f31c99c-1.el7.x86_64.rpm b/roles/sled-mcn0/files/rpm/sapp-4.0.7.f31c99c-1.el7.x86_64.rpm
new file mode 100644
index 0000000..ea05fc1
--- /dev/null
+++ b/roles/sled-mcn0/files/rpm/sapp-4.0.7.f31c99c-1.el7.x86_64.rpm
Binary files differ
diff --git a/roles/sled-mcn0/tasks/main.yml b/roles/sled-mcn0/tasks/main.yml
index 914656a..6748a71 100644
--- a/roles/sled-mcn0/tasks/main.yml
+++ b/roles/sled-mcn0/tasks/main.yml
@@ -1,22 +1,22 @@
---
- name: "copy houyi_rpm_file to destination server"
synchronize:
- src: "{{ role_path }}/files/rpm/{{ houyi_rpm_file }}"
+ src: "{{ role_path }}/files/rpm/{{ houyi_global.rpm_files.houyi_rpm_file }}"
dest: "/tmp/houyi_deploy/"
- name: "copy houyi_plug_rpm_file to destination server"
synchronize:
- src: "{{ role_path }}/files/rpm/{{ houyi_plug_rpm_file }}"
+ src: "{{ role_path }}/files/rpm/{{ houyi_global.rpm_files.houyi_plug_rpm_file }}"
dest: "/tmp/houyi_deploy/"
- name: "copy net_flood_rpm_file to destination server"
synchronize:
- src: "{{ role_path }}/files/rpm/{{ net_flood_rpm_file }}"
+ src: "{{ role_path }}/files/rpm/{{ houyi_global.rpm_files.net_flood_rpm_file }}"
dest: "/tmp/houyi_deploy/"
- name: "copy sapp_rpm_file to destination server"
synchronize:
- src: "{{ role_path }}/files/rpm/{{ sapp_rpm_file }}"
+ src: "{{ role_path }}/files/rpm/{{ houyi_global.rpm_files.sapp_rpm_file }}"
dest: "/tmp/houyi_deploy/"
- name: "install sapp"
@@ -25,7 +25,7 @@
state: present
vars:
packages:
- - /tmp/houyi_deploy/{{ sapp_rpm_file }}
+ - /tmp/houyi_deploy/{{ houyi_global.rpm_files.sapp_rpm_file }}
- name: "install houyi"
yum:
@@ -33,7 +33,7 @@
state: present
vars:
packages:
- - /tmp/houyi_deploy/{{ houyi_rpm_file }}
+ - /tmp/houyi_deploy/{{ houyi_global.rpm_files.houyi_rpm_file }}
- name: "install houyi-plug"
yum:
@@ -41,7 +41,7 @@
state: present
vars:
packages:
- - /tmp/houyi_deploy/{{ houyi_plug_rpm_file }}
+ - /tmp/houyi_deploy/{{ houyi_global.rpm_files.houyi_plug_rpm_file }}
- name: "install net_flood"
yum:
@@ -49,7 +49,7 @@
state: present
vars:
packages:
- - /tmp/houyi_deploy/{{ net_flood_rpm_file }}
+ - /tmp/houyi_deploy/{{ houyi_global.rpm_files.net_flood_rpm_file }}
@@ -82,6 +82,12 @@
src: "{{ role_path }}/templates/houyi_plug_static_arp.conf.j2"
dest: /home/mesasoft/sapp_run/houyi_etc/houyi_plug_static_arp.conf
tags: template
+
+- name: "Template houyi_plug_arp_network.conf"
+ template:
+ src: "{{ role_path }}/templates/houyi_plug_arp_network.conf.j2"
+ dest: /home/mesasoft/sapp_run/houyi_etc/houyi_plug_arp_network.conf
+ tags: template
- name: "Template houyi.conf"
template:
diff --git a/roles/sled-mcn0/templates/houyi_plug_arp_network.conf.j2 b/roles/sled-mcn0/templates/houyi_plug_arp_network.conf.j2
new file mode 100644
index 0000000..068b289
--- /dev/null
+++ b/roles/sled-mcn0/templates/houyi_plug_arp_network.conf.j2
@@ -0,0 +1,8 @@
+#arp查询的源ip不能随意写, 因为可能不通过sapp, 必须要保证两端ip段不一致
+#或者是写个肯定不存在的sip和smac, arp回复时也能过sapp.
+
+#dir network mask-bit-num mac-addr
+#dir: 0:C2I, 1:I2C
+#example:
+0 192.168.10.0 24 46:9d:8e:37:53:11
+1 192.168.10.128 24 46:9d:8e:37:53:22 \ No newline at end of file
diff --git a/roles/sled-mcn0/templates/houyi_plug_static_arp.conf.j2 b/roles/sled-mcn0/templates/houyi_plug_static_arp.conf.j2
index d948459..b65b924 100644
--- a/roles/sled-mcn0/templates/houyi_plug_static_arp.conf.j2
+++ b/roles/sled-mcn0/templates/houyi_plug_static_arp.conf.j2
@@ -2,5 +2,6 @@
#dir ip-version ip-string mac-addr-with':'
#dir: 0:C2I, outbound_device; 1:I2C, inbound_device
#example:
-#0 4 192.168.40.161 46:9d:8e:37:53:f9
+0 4 10.3.22.222 46:9d:8e:37:53:f1
+1 4 10.3.22.12 46:9d:8e:37:53:f2
#0 6 fe80::449d:8eff:fe37:53f9 46:9d:8e:37:53:f9 \ No newline at end of file