修改文件目录结构

1.TSG-OS 公用的系统配置放到 system-init;
	2.TSG-7400 独自使用的系统配置放到 system-init-7400;
	3.TSG-9140 独自使用的系统配置放到 system-init-9140;
This commit is contained in:
luwenpeng
2021-06-03 19:09:03 +08:00
parent 5db86373d6
commit eb540701bd
24 changed files with 129 additions and 126 deletions

View File

@@ -0,0 +1,125 @@
---
- name: "set 90-9000NPBP01R01.rules"
template:
src: "{{ role_path }}/templates/90-9000NPBP01R01.rules.j2"
dest: /usr/lib/udev/rules.d/90-9000NPBP01R01.rules
mode: 0644
tags: template
- name: "set enp1s0 up "
template:
src: "{{ role_path }}/templates/ifcfg-enp1s0.toml.j2"
dest: /etc/sysconfig/network-scripts/ifcfg-enp1s0
tags: template
- name: "set enp5s0f0 up "
template:
src: "{{ role_path }}/templates/ifcfg-enp5s0f0.toml.j2"
dest: /etc/sysconfig/network-scripts/ifcfg-enp5s0f0
tags: template
- name: "set enp5s0f1 up "
template:
src: "{{ role_path }}/templates/ifcfg-enp5s0f1.toml.j2"
dest: /etc/sysconfig/network-scripts/ifcfg-enp5s0f1
tags: template
- name: "set enp130s0 up "
template:
src: "{{ role_path }}/templates/ifcfg-enp130s0.toml.j2"
dest: /etc/sysconfig/network-scripts/ifcfg-enp130s0
tags: template
- name: "set enp131s0f0 up "
template:
src: "{{ role_path }}/templates/ifcfg-enp131s0f0.toml.j2"
dest: /etc/sysconfig/network-scripts/ifcfg-enp131s0f0
tags: template
- name: "set enp131s0f1 up "
template:
src: "{{ role_path }}/templates/ifcfg-enp131s0f1.toml.j2"
dest: /etc/sysconfig/network-scripts/ifcfg-enp131s0f1
tags: template
- name: "set enp131s0f2 up "
template:
src: "{{ role_path }}/templates/ifcfg-enp131s0f2.toml.j2"
dest: /etc/sysconfig/network-scripts/ifcfg-enp131s0f2
tags: template
- name: "set enp131s0f3 up "
template:
src: "{{ role_path }}/templates/ifcfg-enp131s0f3.toml.j2"
dest: /etc/sysconfig/network-scripts/ifcfg-enp131s0f3
tags: template
- name: "set enp1s2"
template:
src: "{{ role_path }}/templates/ifcfg-enp1s2.toml.j2"
dest: /etc/sysconfig/network-scripts/ifcfg-enp1s2
tags: template
- name: "set enp1s2f1"
template:
src: "{{ role_path }}/templates/ifcfg-enp1s2f1.toml.j2"
dest: /etc/sysconfig/network-scripts/ifcfg-enp1s2f1
tags: template
- name: "set enp1s2f2"
template:
src: "{{ role_path }}/templates/ifcfg-enp1s2f2.toml.j2"
dest: /etc/sysconfig/network-scripts/ifcfg-enp1s2f2
tags: template
- name: "set enp130s2"
template:
src: "{{ role_path }}/templates/ifcfg-enp130s2.toml.j2"
dest: /etc/sysconfig/network-scripts/ifcfg-enp130s2
tags: template
- name: "set enp130s2f1"
template:
src: "{{ role_path }}/templates/ifcfg-enp130s2f1.toml.j2"
dest: /etc/sysconfig/network-scripts/ifcfg-enp130s2f1
tags: template
- name: "set enp130s2f2"
template:
src: "{{ role_path }}/templates/ifcfg-enp130s2f2.toml.j2"
dest: /etc/sysconfig/network-scripts/ifcfg-enp130s2f2
tags: template
- name: "set enp130s2f3"
template:
src: "{{ role_path }}/templates/ifcfg-enp130s2f3.toml.j2"
dest: /etc/sysconfig/network-scripts/ifcfg-enp130s2f3
tags: template
- name: "set if-pre-up "
template:
src: "{{ role_path }}/templates/if-pre-up.toml.j2"
dest: /etc/NetworkManager/dispatcher.d/pre-up.d/if-pre-up
mode: 0755
tags: template
- name: "set setup.enp131s0f0.ips"
template:
src: "{{ role_path }}/templates/setup.enp131s0f0.ips.toml.j2"
dest: /sbin/setup.enp131s0f0.ips
mode: 0777
tags: template
- name: "set setup.enp130s2f1.ips"
template:
src: "{{ role_path }}/templates/setup.enp130s2f1.ips.toml.j2"
dest: /sbin/setup.enp130s2f1.ips
mode: 0777
tags: template
- name: "set set-enp1s2-macaddr.sh"
template:
src: "{{ role_path }}/templates/set-enp1s2-macaddr.sh.toml.j2"
dest: /usr/bin/set-enp1s2-macaddr.sh
mode: 0777
tags: template

View File

@@ -1,129 +1,4 @@
---
- name: "set 90-9000NPBP01R01.rules"
template:
src: "{{ role_path }}/templates/90-9000NPBP01R01.rules.j2"
dest: /usr/lib/udev/rules.d/90-9000NPBP01R01.rules
mode: 0644
tags: template
- name: "set enp1s0 up "
template:
src: "{{ role_path }}/templates/ifcfg-enp1s0.toml.j2"
dest: /etc/sysconfig/network-scripts/ifcfg-enp1s0
tags: template
- name: "set enp5s0f0 up "
template:
src: "{{ role_path }}/templates/ifcfg-enp5s0f0.toml.j2"
dest: /etc/sysconfig/network-scripts/ifcfg-enp5s0f0
tags: template
- name: "set enp5s0f1 up "
template:
src: "{{ role_path }}/templates/ifcfg-enp5s0f1.toml.j2"
dest: /etc/sysconfig/network-scripts/ifcfg-enp5s0f1
tags: template
- name: "set enp130s0 up "
template:
src: "{{ role_path }}/templates/ifcfg-enp130s0.toml.j2"
dest: /etc/sysconfig/network-scripts/ifcfg-enp130s0
tags: template
- name: "set enp131s0f0 up "
template:
src: "{{ role_path }}/templates/ifcfg-enp131s0f0.toml.j2"
dest: /etc/sysconfig/network-scripts/ifcfg-enp131s0f0
tags: template
- name: "set enp131s0f1 up "
template:
src: "{{ role_path }}/templates/ifcfg-enp131s0f1.toml.j2"
dest: /etc/sysconfig/network-scripts/ifcfg-enp131s0f1
tags: template
- name: "set enp131s0f2 up "
template:
src: "{{ role_path }}/templates/ifcfg-enp131s0f2.toml.j2"
dest: /etc/sysconfig/network-scripts/ifcfg-enp131s0f2
tags: template
- name: "set enp131s0f3 up "
template:
src: "{{ role_path }}/templates/ifcfg-enp131s0f3.toml.j2"
dest: /etc/sysconfig/network-scripts/ifcfg-enp131s0f3
tags: template
- name: "set enp1s2"
template:
src: "{{ role_path }}/templates/ifcfg-enp1s2.toml.j2"
dest: /etc/sysconfig/network-scripts/ifcfg-enp1s2
tags: template
- name: "set enp1s2f1"
template:
src: "{{ role_path }}/templates/ifcfg-enp1s2f1.toml.j2"
dest: /etc/sysconfig/network-scripts/ifcfg-enp1s2f1
tags: template
- name: "set enp1s2f2"
template:
src: "{{ role_path }}/templates/ifcfg-enp1s2f2.toml.j2"
dest: /etc/sysconfig/network-scripts/ifcfg-enp1s2f2
tags: template
- name: "set enp130s2"
template:
src: "{{ role_path }}/templates/ifcfg-enp130s2.toml.j2"
dest: /etc/sysconfig/network-scripts/ifcfg-enp130s2
tags: template
- name: "set enp130s2f1"
template:
src: "{{ role_path }}/templates/ifcfg-enp130s2f1.toml.j2"
dest: /etc/sysconfig/network-scripts/ifcfg-enp130s2f1
tags: template
- name: "set enp130s2f2"
template:
src: "{{ role_path }}/templates/ifcfg-enp130s2f2.toml.j2"
dest: /etc/sysconfig/network-scripts/ifcfg-enp130s2f2
tags: template
- name: "set enp130s2f3"
template:
src: "{{ role_path }}/templates/ifcfg-enp130s2f3.toml.j2"
dest: /etc/sysconfig/network-scripts/ifcfg-enp130s2f3
tags: template
- name: "set if-pre-up "
template:
src: "{{ role_path }}/templates/if-pre-up.toml.j2"
dest: /etc/NetworkManager/dispatcher.d/pre-up.d/if-pre-up
mode: 0755
tags: template
- name: "set setup.enp131s0f0.ips"
template:
src: "{{ role_path }}/templates/setup.enp131s0f0.ips.toml.j2"
dest: /sbin/setup.enp131s0f0.ips
mode: 0777
tags: template
- name: "set setup.enp130s2f1.ips"
template:
src: "{{ role_path }}/templates/setup.enp130s2f1.ips.toml.j2"
dest: /sbin/setup.enp130s2f1.ips
mode: 0777
tags: template
- name: "set set-enp1s2-macaddr.sh"
template:
src: "{{ role_path }}/templates/set-enp1s2-macaddr.sh.toml.j2"
dest: /usr/bin/set-enp1s2-macaddr.sh
mode: 0777
tags: template
- name: "enable sshd"
systemd:
name: sshd

View File

@@ -5,6 +5,7 @@
- install_config/group_vars/rpm_version.yml
roles:
- {role: tsg-os-provision, tags: tsg-os-provision}
- {role: system-init, tags: system-init}
- {role: system-init-7400-mcn0, tags: system-init-7400-mcn0}
- hosts: 7400-MCN123-P01R01
@@ -14,4 +15,5 @@
- install_config/group_vars/rpm_version.yml
roles:
- {role: tsg-os-provision, tags: tsg-os-provision}
- {role: system-init, tags: system-init}
- {role: system-init-7400-mcn123, tags: system-init-7400-mcn123}

View File

@@ -29,4 +29,5 @@
- {role: exporter, tags: exporter}
- {role: docker, tags: docker}
- {role: tsg-diagnose, tags: tsg-diagnose}
- {role: system-init, tags: system-init}
- {role: system-init, tags: system-init}
- {role: system-init-9140, tags: system-init-9140}