From 74c10807eca98778deab2e3ede3b84d3c0d71b5e Mon Sep 17 00:00:00 2001 From: CentOS Sources Date: Aug 16 2018 15:45:19 +0000 Subject: import rhel-system-roles-1.0-2.el7 --- diff --git a/.gitignore b/.gitignore index 8e3a1c7..09ae449 100644 --- a/.gitignore +++ b/.gitignore @@ -1,5 +1,5 @@ -SOURCES/kdump-0.1.tar.gz -SOURCES/network-0.4.tar.gz +SOURCES/kdump-1.0.0-rc.1.tar.gz +SOURCES/network-d866422.tar.gz SOURCES/postfix-0.1.tar.gz -SOURCES/selinux-ebcb133.tar.gz -SOURCES/timesync-0.1.tar.gz +SOURCES/selinux-6dd057a.tar.gz +SOURCES/timesync-1.0.0-rc.1.tar.gz diff --git a/.rhel-system-roles.metadata b/.rhel-system-roles.metadata index 82f99ba..9c5a7c4 100644 --- a/.rhel-system-roles.metadata +++ b/.rhel-system-roles.metadata @@ -1,5 +1,5 @@ -f565f627f199d146cda3404de5b65c5f50e3702a SOURCES/kdump-0.1.tar.gz -5e89945a67433a8a9c1912bb913efb4869ba2c86 SOURCES/network-0.4.tar.gz +50f9e33a7ea64bd6251a3f091227c55d232a4a08 SOURCES/kdump-1.0.0-rc.1.tar.gz +546b39827090e971dac449a12d3af52f6d1e7ab2 SOURCES/network-d866422.tar.gz 66c82331f4ac9598c506c3999965b4d07dbfe49d SOURCES/postfix-0.1.tar.gz -41775f2004b421140cf6deb0f28284be21e7bdfa SOURCES/selinux-ebcb133.tar.gz -47b5287fbbf4e268414d28d503fe9be8b72c7747 SOURCES/timesync-0.1.tar.gz +4dcff70976d75c732a2ebca786090ba59f41cb95 SOURCES/selinux-6dd057a.tar.gz +997b129eae558e84507ca01e4557d527ca43e9b2 SOURCES/timesync-1.0.0-rc.1.tar.gz diff --git a/SOURCES/network-docs-pr36.diff b/SOURCES/network-docs-pr36.diff deleted file mode 100644 index 257faa6..0000000 --- a/SOURCES/network-docs-pr36.diff +++ /dev/null @@ -1,105 +0,0 @@ -diff --git a/README.md b/README.md -index 9d66088..2612c46 100644 ---- a/README.md -+++ b/README.md -@@ -113,6 +113,7 @@ variable. - Valid values for `type` are: - - - `ethernet` -+ - `infiniband` - - `bridge` - - `bond` - - `team` -@@ -142,7 +143,7 @@ to match a non-virtual device with the profile. - - - For NetworkManager `mac` is the permanent MAC address `ethernet.mac-address`. - --- For initscripts, this means the currently configurd MAC address of the device (`HWADDR`). -+- For initscripts, this means the currently configured MAC address of the device (`HWADDR`). - - ### `interface_name` - -@@ -252,6 +253,13 @@ network_connections: - #dhcp4_send_hostname: no - gateway4: 192.0.2.1 - -+ dns: -+ - 192.0.2.2 -+ - 198.51.100.5 -+ dns_search: -+ - example.com -+ - subdomain.example.com -+ - route_metric6: -1 - auto6: no - gateway6: 2001:db8::1 -@@ -260,6 +268,18 @@ network_connections: - - 192.0.2.3/24 - - 198.51.100.3/26 - - 2001:db8::80/7 -+ -+ route: -+ - network: 198.51.100.128 -+ prefix: 26 -+ gateway: 198.51.100.1 -+ metric: 2 -+ - network: 198.51.100.64 -+ prefix: 26 -+ gateway: 198.51.100.6 -+ metric: 4 -+ route_append_only: no -+ rule_append_only: yes - ``` - - Manual addressing can be specified via a list of addresses and prefixes `address`. -@@ -273,14 +293,50 @@ Note that `dhcp4_send_hostname` is only supported by the `nm` provider and trans - to [`ipv4.dhcp-send-hostname`](https://developer.gnome.org/NetworkManager/stable/nm-settings.html#nm-settings.property.ipv4.dhcp-send-hostname) - property. - -+Manual DNS configuration can be specified via a list of addresses -+given in the `dns` option and a list of domains to search given in the -+`dns_search` option. -+ - - For NetworkManager, `route_metric4` and `route_metric6` corresponds to the - [`ipv4.route-metric`](https://developer.gnome.org/NetworkManager/stable/nm-settings.html#nm-settings.property.ipv4.route-metric) and - [`ipv6.route-metric`](https://developer.gnome.org/NetworkManager/stable/nm-settings.html#nm-settings.property.ipv6.route-metric) - properties, respectively. If specified, it determines the route metric - for DHCP assigned routes and the default route, and thus the priority for multiple interfaces. - -+Static route configuration can be specified via a list of routes given in the `route` -+option. The default value is an empty list. Each route is a dictionary with the following -+entries: `network`, `prefix`, `gateway` and `metric`. `network` and `prefix` together specify -+the destination network. CIDR notation or network mask notation are not supported yet. If the -+boolean option `route_append_only` is `yes`, the specified routes are appended to the -+existing routes, if it is `no` (default), the current routes are replaced. Setting this -+option to `yes` without setting `route` has the effect of preserving the current static routes. The -+boolean option `rule_append_only` works in a similar way for routing rules. Note that there is -+no further support for routing rules at the moment, so this option serves merely the purpose -+of preserving the current routing rules. Note also that when -+`route_append_only`/`rule_append_only` is not specified, the current routes/routing rules will -+be deleted by the role. -+ - Slaves to bridge/bond/team devices cannot specify `ip` settings. - -+### `type: ethernet` -+ -+Ethernet-specific options can be set using the connection profile variable `ethernet`. This -+variable should be specified as a dictionary with the following items (options): `autoneg`, `speed` and `duplex`, -+which correspond to the settings of the `ethtool` utility with the same name. `speed` is an -+integer giving the speed in Mb/s, the valid values of `duplex` are `half` and `full`, and -+`autoneg` accepts a boolean value (default is `yes`) to configure autonegotiation. The `speed` and `duplex` settings are required when autonegotiation is disabled. -+ -+```yaml -+network_connections: -+ - name: "eth0" -+ type: "ethernet" -+ -+ ethernet: -+ autoneg: no -+ speed: 1000 -+ duplex: full -+``` -+ - ### Virtual types and Slaves - - Device types like `bridge`, `bond`, `team` work similar: diff --git a/SOURCES/rhel-system-roles-kdump-ssh.diff b/SOURCES/rhel-system-roles-kdump-ssh.diff deleted file mode 100644 index f40192b..0000000 --- a/SOURCES/rhel-system-roles-kdump-ssh.diff +++ /dev/null @@ -1,104 +0,0 @@ -diff --git a/defaults/main.yml b/defaults/main.yml -index 15a741d..270408c 100644 ---- a/defaults/main.yml -+++ b/defaults/main.yml -@@ -3,3 +3,6 @@ dump_target: null - path: /var/crash - core_collector: null - system_action: reboot -+ssh_dump_user: null -+ssh_dump_server: null -+sshkey: /root/.ssh/kdump_id_rsa -diff --git a/tasks/main.yml b/tasks/main.yml -index 2c95ced..427f83f 100644 ---- a/tasks/main.yml -+++ b/tasks/main.yml -@@ -8,6 +8,11 @@ - command: cat /sys/kernel/kexec_crash_size - register: kexec_crash_size - -+- include_tasks: ssh.yml -+ when: -+ - dump_target -+ - dump_target.kind == "ssh" -+ - - name: Generate /etc/kdump.conf - template: - src: kdump.conf.j2 -diff --git a/tasks/ssh.yml b/tasks/ssh.yml -new file mode 100644 -index 0000000..2df84a8 ---- /dev/null -+++ b/tasks/ssh.yml -@@ -0,0 +1,17 @@ -+--- -+- stat: path="{{ sshkey }}" -+ register: sshkey_stats -+ -+- command: "/usr/bin/ssh-keygen -t rsa -f {{ sshkey }} -N '' " -+ when: sshkey_stats.stat.exists == False -+ -+- name: cat file to register -+ shell: cat {{ sshkey }}.pub -+ register: keydata -+ -+- name: -+ authorized_key: -+ user: "{{ ssh_dump_user }}" -+ key: "{{ keydata.stdout }}" -+ state: present -+ delegate_to: "{{ ssh_dump_server }}" -diff --git a/templates/kdump.conf.j2 b/templates/kdump.conf.j2 -index 260e842..1b48ba3 100644 ---- a/templates/kdump.conf.j2 -+++ b/templates/kdump.conf.j2 -@@ -4,6 +4,11 @@ - {% if dump_target %} - {{ dump_target.kind }} {{ dump_target.location }} - {% endif %} -+ -+{% if dump_target and dump_target.kind == "ssh" and sshkey != '/root/.ssh/kdump_id_rsa' %} -+sshkey {{ sshkey }} -+{% endif %} -+ - path {{ path }} - {% if core_collector %} - core_collector {{ core_collector }} -diff --git a/test/test_ssh.yml b/test/test_ssh.yml -new file mode 100644 -index 0000000..af8b51e ---- /dev/null -+++ b/test/test_ssh.yml -@@ -0,0 +1,32 @@ -+ -+- name: Ensure that the rule runs with ssh -+ hosts: all -+ vars: -+ # this is the outside address under which the ssh dump server is -+ # known and ansible is supposed to be configured to be able to -+ # connect to it (via inventory). -+ ssh_dump_server_outside: localhost -+ -+ tasks: -+ - name: gather facts from {{ ssh_dump_server_outside }} -+ setup: -+ delegate_to: "{{ ssh_dump_server_outside }}" -+ delegate_facts: True -+ -+ - include_role: -+ name: kdump -+ vars: -+ ssh_dump_user: "{{ hostvars[ssh_dump_server_outside]['ansible_user_id'] }}" -+ # This is the outside address. Ansible will connect to it to -+ # copy the ssh key. -+ ssh_dump_server: "{{ ssh_dump_server_outside }}" -+ path: /tmp/test -+ dump_target: -+ kind: ssh -+ # This is the ssh dump server address visible from inside -+ # the machine being configured. Dumps are to be copied -+ # there. We make here the assumption that this machine is -+ # being run as a VM and the dump server is the VM host -+ # (i.e. for ansible this is localhost). From the VM its -+ # address is then identical to the default route. -+ location: "{{ ssh_dump_user }}@{{ ansible_default_ipv4.gateway }}" diff --git a/SOURCES/rhel-system-roles-network-prefix.diff b/SOURCES/rhel-system-roles-network-prefix.diff index d2a22dc..3065f21 100644 --- a/SOURCES/rhel-system-roles-network-prefix.diff +++ b/SOURCES/rhel-system-roles-network-prefix.diff @@ -1,50 +1,60 @@ diff --git a/examples/bond-with-vlan.yml b/examples/bond-with-vlan.yml -index d120f13..4023c8d 100644 +index 2e6be23..3b7a6dc 100644 --- a/examples/bond-with-vlan.yml +++ b/examples/bond-with-vlan.yml -@@ -34,4 +34,4 @@ +@@ -35,4 +35,4 @@ - "192.0.2.{{ network_iphost }}/24" roles: -- - network -+ - linux-system-roles.network +- - linux-system-roles.network ++ - rhel-system-roles.network diff --git a/examples/bridge-with-vlan.yml b/examples/bridge-with-vlan.yml -index ce48443..63c935b 100644 +index 037ff8e..83c586d 100644 --- a/examples/bridge-with-vlan.yml +++ b/examples/bridge-with-vlan.yml -@@ -32,4 +32,4 @@ +@@ -33,4 +33,4 @@ - "192.0.2.{{ network_iphost }}/24" roles: -- - network -+ - linux-system-roles.network +- - linux-system-roles.network ++ - rhel-system-roles.network diff --git a/examples/eth-simple-auto.yml b/examples/eth-simple-auto.yml -index 5934ca8..8fa0147 100644 +index 0ba168a..e4c4a54 100644 --- a/examples/eth-simple-auto.yml +++ b/examples/eth-simple-auto.yml -@@ -14,4 +14,4 @@ +@@ -15,4 +15,4 @@ mtu: 1450 roles: -- - network -+ - linux-system-roles.network +- - linux-system-roles.network ++ - rhel-system-roles.network diff --git a/examples/eth-with-vlan.yml b/examples/eth-with-vlan.yml -index d269886..fb9b2d9 100644 +index 63c7432..1c8ee60 100644 --- a/examples/eth-with-vlan.yml +++ b/examples/eth-with-vlan.yml -@@ -24,4 +24,4 @@ +@@ -25,4 +25,4 @@ - "192.0.2.{{ network_iphost }}/24" roles: -- - network -+ - linux-system-roles.network +- - linux-system-roles.network ++ - rhel-system-roles.network diff --git a/examples/infiniband.yml b/examples/infiniband.yml -index ca1db67..1054e70 100644 +index e7197fe..b8710d4 100644 --- a/examples/infiniband.yml +++ b/examples/infiniband.yml -@@ -21,4 +21,4 @@ +@@ -22,4 +22,4 @@ - 198.51.100.133/30 roles: -- - network -+ - linux-system-roles.network +- - linux-system-roles.network ++ - rhel-system-roles.network +diff --git a/examples/macvlan.yml b/examples/macvlan.yml +index 0e6ba1b..14f5dd8 100644 +--- a/examples/macvlan.yml ++++ b/examples/macvlan.yml +@@ -24,4 +24,4 @@ + - 192.168.1.1/24 + + roles: +- - linux-system-roles.network ++ - rhel-system-roles.network diff --git a/SOURCES/rhel-system-roles-selinux-prefix.diff b/SOURCES/rhel-system-roles-selinux-prefix.diff index dd73ab8..8820d6d 100644 --- a/SOURCES/rhel-system-roles-selinux-prefix.diff +++ b/SOURCES/rhel-system-roles-selinux-prefix.diff @@ -1,23 +1,32 @@ diff --git a/README.md b/README.md -index 80bcf89..cf8cb1b 100644 +index a0385b0..6efc62d 100644 --- a/README.md +++ b/README.md -@@ -42,7 +42,7 @@ This role can be configured using variables as it is described bellow. +@@ -41,7 +41,7 @@ This role can be configured using variables as it is described below. vars: - [ see bellow ] + [ see below ] roles: -- - role: selinux -+ - role: linux-system-roles.selinux +- - role: linux-system-roles.selinux ++ - role: rhel-system-roles.selinux become: true ``` diff --git a/selinux-playbook.yml b/selinux-playbook.yml -index 28e072c..a5dad27 100644 +index 78d3953..b2348d5 100644 --- a/selinux-playbook.yml +++ b/selinux-playbook.yml -@@ -31,4 +31,4 @@ - name: sar-user +@@ -31,7 +31,7 @@ + - name: execute the role and catch errors + block: + - include_role: +- name: linux-system-roles.selinux ++ name: rhel-system-roles.selinux + rescue: + # Fail if failed for a different reason than selinux_reboot_required. + - name: handle errors +@@ -52,4 +52,4 @@ - roles: -- - selinux -+ - linux-system-roles.selinux + - name: reapply the role + include_role: +- name: linux-system-roles.selinux ++ name: rhel-system-roles.selinux diff --git a/SOURCES/rhel-system-roles-timesync-prefix.diff b/SOURCES/rhel-system-roles-timesync-prefix.diff index 58516d1..02f9bb0 100644 --- a/SOURCES/rhel-system-roles-timesync-prefix.diff +++ b/SOURCES/rhel-system-roles-timesync-prefix.diff @@ -1,29 +1,29 @@ diff --git a/README.md b/README.md -index f419e0b..0d2112d 100644 +index 122b725..3866c2e 100644 --- a/README.md +++ b/README.md -@@ -64,7 +64,7 @@ Install and configure ntp to synchronize the system clock with three NTP servers +@@ -70,7 +70,7 @@ Install and configure ntp to synchronize the system clock with three NTP servers - hostname: baz.example.com iburst: yes roles: - - timesync -+ - linux-system-roles.timesync ++ - rhel-system-roles.timesync ``` Install and configure linuxptp to synchronize the system clock with a -@@ -77,7 +77,7 @@ grandmaster in PTP domain number 0, which is accessible on interface eth0: +@@ -83,7 +83,7 @@ grandmaster in PTP domain number 0, which is accessible on interface eth0: - number: 0 interfaces: [ eth0 ] roles: - - timesync -+ - linux-system-roles.timesync ++ - rhel-system-roles.timesync ``` Install and configure chrony and linuxptp to synchronize the system clock with -@@ -104,5 +104,5 @@ synchronization: +@@ -110,5 +110,5 @@ synchronization: transport: UDPv4 delay: 0.000010 roles: - - timesync -+ - linux-system-roles.timesync ++ - rhel-system-roles.timesync ``` diff --git a/SPECS/rhel-system-roles.spec b/SPECS/rhel-system-roles.spec index bd624cc..e3f9dcd 100644 --- a/SPECS/rhel-system-roles.spec +++ b/SPECS/rhel-system-roles.spec @@ -1,7 +1,7 @@ Name: rhel-system-roles Summary: Set of interfaces for unified system management -Version: 0.6 -Release: 3%{?dist} +Version: 1.0 +Release: 2%{?dist} #Group: Development/Libraries License: GPLv3+ and MIT and BSD @@ -11,14 +11,14 @@ License: GPLv3+ and MIT and BSD %global commit0 fe8bb81966b60fa8979f3816a12b0c7120d71140 %global shortcommit0 %(c=%{commit0}; echo ${c:0:7}) %global rolename0 kdump -%global version0 0.1 +%global version0 1.0.0-rc.1 %global commit1 43eec5668425d295dce3801216c19b1916df1f9b %global shortcommit1 %(c=%{commit1}; echo ${c:0:7}) %global rolename1 postfix %global version1 0.1 -%global commit2 ebcb133649fb5aba5bf0b7a64f2db2b90aadda1b +%global commit2 6dd057aa434a31cb6ee67d02967362f9131e0c50 %global shortcommit2 %(c=%{commit2}; echo ${c:0:7}) %global rolename2 selinux #%%global version2 0.1 @@ -26,19 +26,19 @@ License: GPLv3+ and MIT and BSD %global commit3 33a1a8c349de10d6281ed83d4c791e9177d7a141 %global shortcommit3 %(c=%{commit3}; echo ${c:0:7}) %global rolename3 timesync -%global version3 0.1 +%global version3 1.0.0-rc.1 -%global commit5 b856c7481bf5274d419f71fb62029ea0044b3ec1 +%global commit5 d866422d9d73ed823632a3c56ee8575cd56cad5b %global shortcommit5 %(c=%{commit5}; echo ${c:0:7}) %global rolename5 network -%global version5 0.4 +#%%global version5 0.4 Source: https://github.com/linux-system-roles/%{rolename0}/archive/%{version0}.tar.gz#/%{rolename0}-%{version0}.tar.gz Source1: https://github.com/linux-system-roles/%{rolename1}/archive/%{version1}.tar.gz#/%{rolename1}-%{version1}.tar.gz Source2: https://github.com/linux-system-roles/%{rolename2}/archive/%{commit2}.tar.gz#/%{rolename2}-%{shortcommit2}.tar.gz Source3: https://github.com/linux-system-roles/%{rolename3}/archive/%{version3}.tar.gz#/%{rolename3}-%{version3}.tar.gz -Source5: https://github.com/linux-system-roles/%{rolename5}/archive/%{version5}.tar.gz#/%{rolename5}-%{version5}.tar.gz +Source5: https://github.com/linux-system-roles/%{rolename5}/archive/%{commit5}.tar.gz#/%{rolename5}-%{shortcommit5}.tar.gz Source6: timesync-playbook.yml Source7: timesync-pool-playbook.yml @@ -48,22 +48,32 @@ Patch2: rhel-system-roles-%{rolename2}-prefix.diff Patch3: rhel-system-roles-%{rolename3}-prefix.diff Patch5: rhel-system-roles-%{rolename5}-prefix.diff -Patch101: rhel-system-roles-kdump-ssh.diff -Patch51: network-docs-pr36.diff - Url: https://github.com/linux-system-roles/ BuildArch: noarch %description -Collection of interfaces serving as a stable API for the management -of the RHEL operating system across major releases, implemented -using Ansible. +Collection of Ansible roles and modules that provide a stable and +consistent configuration interface for managing multiple versions +of Red Hat Enterprise Linux. + +%package techpreview +Summary: Set of interfaces for unified system management (tech preview) +# to be updated when roles move to/from the main package to this one +Conflicts: rhel-system-roles < 1.0-1 + +%description techpreview +Collection of Ansible roles and modules that provide a consistent +configuration interface for managing multiple versions of Red Hat +Enterprise Linux. + +The roles in this subpackage are available as Technology Preview +and their backward compatibility is not guaranteed. %prep -%setup -qc -b1 -b2 -b3 -b5 +%setup -qc -a1 -a2 -a3 -a5 cd %{rolename0}-%{version0} -%patch101 -p1 +#kdump patches here if necessary cd .. cd %{rolename1}-%{version1} %patch1 -p1 @@ -74,9 +84,8 @@ cd .. cd %{rolename3}-%{version3} %patch3 -p1 cd .. -cd %{rolename5}-%{version5} +cd %{rolename5}-%{commit5} %patch5 -p1 -%patch51 -p1 cd .. %build @@ -88,7 +97,7 @@ cp -pR %{rolename0}-%{version0} $RPM_BUILD_ROOT%{_datadir}/ansible/roles/%{ cp -pR %{rolename1}-%{version1} $RPM_BUILD_ROOT%{_datadir}/ansible/roles/%{rolecompatprefix}%{rolename1} cp -pR %{rolename2}-%{commit2} $RPM_BUILD_ROOT%{_datadir}/ansible/roles/%{rolecompatprefix}%{rolename2} cp -pR %{rolename3}-%{version3} $RPM_BUILD_ROOT%{_datadir}/ansible/roles/%{rolecompatprefix}%{rolename3} -cp -pR %{rolename5}-%{version5} $RPM_BUILD_ROOT%{_datadir}/ansible/roles/%{rolecompatprefix}%{rolename5} +cp -pR %{rolename5}-%{commit5} $RPM_BUILD_ROOT%{_datadir}/ansible/roles/%{rolecompatprefix}%{rolename5} ln -s %{rolecompatprefix}%{rolename0} $RPM_BUILD_ROOT%{_datadir}/ansible/roles/%{roleprefix}%{rolename0} ln -s %{rolecompatprefix}%{rolename1} $RPM_BUILD_ROOT%{_datadir}/ansible/roles/%{roleprefix}%{rolename1} @@ -123,7 +132,7 @@ cp -p $RPM_BUILD_ROOT%{_datadir}/ansible/roles/%{rolecompatprefix}timesync/READM $RPM_BUILD_ROOT%{_pkgdocdir}/timesync cp -p $RPM_BUILD_ROOT%{_datadir}/ansible/roles/%{rolecompatprefix}network/README.md \ - $RPM_BUILD_ROOT%{_datadir}/ansible/roles/%{rolecompatprefix}network/COPYING \ + $RPM_BUILD_ROOT%{_datadir}/ansible/roles/%{rolecompatprefix}network/LICENSE \ $RPM_BUILD_ROOT%{_pkgdocdir}/network mv $RPM_BUILD_ROOT%{_datadir}/ansible/roles/%{rolecompatprefix}network/examples/bond-with-vlan.yml \ $RPM_BUILD_ROOT%{_pkgdocdir}/network/example-bond-with-vlan-playbook.yml @@ -135,46 +144,84 @@ mv $RPM_BUILD_ROOT%{_datadir}/ansible/roles/%{rolecompatprefix}network/examples/ $RPM_BUILD_ROOT%{_pkgdocdir}/network/example-eth-with-vlan-playbook.yml mv $RPM_BUILD_ROOT%{_datadir}/ansible/roles/%{rolecompatprefix}network/examples/infiniband.yml \ $RPM_BUILD_ROOT%{_pkgdocdir}/network/example-infiniband-playbook.yml +mv $RPM_BUILD_ROOT%{_datadir}/ansible/roles/%{rolecompatprefix}network/examples/macvlan.yml \ + $RPM_BUILD_ROOT%{_pkgdocdir}/network/example-macvlan-playbook.yml +cp $RPM_BUILD_ROOT%{_datadir}/ansible/roles/%{rolecompatprefix}network/examples/remove-profile.yml \ + $RPM_BUILD_ROOT%{_pkgdocdir}/network/example-remove-profile-playbook.yml +rm $RPM_BUILD_ROOT%{_datadir}/ansible/roles/%{rolecompatprefix}network/examples/remove-profile.yml +cp $RPM_BUILD_ROOT%{_datadir}/ansible/roles/%{rolecompatprefix}network/examples/down-profile.yml \ + $RPM_BUILD_ROOT%{_pkgdocdir}/network/example-down-profile-playbook.yml +rm $RPM_BUILD_ROOT%{_datadir}/ansible/roles/%{rolecompatprefix}network/examples/down-profile.yml mv $RPM_BUILD_ROOT%{_datadir}/ansible/roles/%{rolecompatprefix}network/examples/inventory \ $RPM_BUILD_ROOT%{_pkgdocdir}/network/example-inventory rm $RPM_BUILD_ROOT%{_datadir}/ansible/roles/%{rolecompatprefix}network/.gitignore -rm $RPM_BUILD_ROOT%{_datadir}/ansible/roles/%{rolecompatprefix}network/test/.gitignore -rm $RPM_BUILD_ROOT%{_datadir}/ansible/roles/%{rolecompatprefix}network/examples/roles/network -rmdir $RPM_BUILD_ROOT%{_datadir}/ansible/roles/%{rolecompatprefix}network/examples/roles +rm $RPM_BUILD_ROOT%{_datadir}/ansible/roles/%{rolecompatprefix}network/tests/.gitignore +rm $RPM_BUILD_ROOT%{_datadir}/ansible/roles/%{rolecompatprefix}network/examples/roles rmdir $RPM_BUILD_ROOT%{_datadir}/ansible/roles/%{rolecompatprefix}network/examples %files %dir %{_datadir}/ansible %dir %{_datadir}/ansible/roles %{_datadir}/ansible/roles/%{roleprefix}kdump -%{_datadir}/ansible/roles/%{roleprefix}postfix %{_datadir}/ansible/roles/%{roleprefix}selinux %{_datadir}/ansible/roles/%{roleprefix}timesync %{_datadir}/ansible/roles/%{roleprefix}network %{_datadir}/ansible/roles/%{rolecompatprefix}kdump -%{_datadir}/ansible/roles/%{rolecompatprefix}postfix %{_datadir}/ansible/roles/%{rolecompatprefix}selinux %{_datadir}/ansible/roles/%{rolecompatprefix}timesync %{_datadir}/ansible/roles/%{rolecompatprefix}network -%doc %{_pkgdocdir}/*/example-*-playbook.yml +# no examples for kdump yet +#%%doc %%{_pkgdocdir}/kdump/example-*-playbook.yml +%doc %{_pkgdocdir}/selinux/example-*-playbook.yml +%doc %{_pkgdocdir}/timesync/example-*-playbook.yml +%doc %{_pkgdocdir}/network/example-*-playbook.yml + %doc %{_pkgdocdir}/network/example-inventory -%doc %{_pkgdocdir}/*/README.md +%doc %{_pkgdocdir}/kdump/README.md +%doc %{_pkgdocdir}/selinux/README.md +%doc %{_pkgdocdir}/timesync/README.md +%doc %{_pkgdocdir}/network/README.md %doc %{_datadir}/ansible/roles/%{rolecompatprefix}kdump/README.md -%doc %{_datadir}/ansible/roles/%{rolecompatprefix}postfix/README.md %doc %{_datadir}/ansible/roles/%{rolecompatprefix}selinux/README.md %doc %{_datadir}/ansible/roles/%{rolecompatprefix}timesync/README.md %doc %{_datadir}/ansible/roles/%{rolecompatprefix}network/README.md %license %{_pkgdocdir}/*/COPYING +%license %{_pkgdocdir}/*/LICENSE %license %{_datadir}/ansible/roles/%{rolecompatprefix}kdump/COPYING -%license %{_datadir}/ansible/roles/%{rolecompatprefix}postfix/COPYING %license %{_datadir}/ansible/roles/%{rolecompatprefix}selinux/COPYING %license %{_datadir}/ansible/roles/%{rolecompatprefix}timesync/COPYING -%license %{_datadir}/ansible/roles/%{rolecompatprefix}network/COPYING +%license %{_datadir}/ansible/roles/%{rolecompatprefix}network/LICENSE + +%files techpreview +%dir %{_datadir}/ansible +%dir %{_datadir}/ansible/roles + +%{_datadir}/ansible/roles/%{roleprefix}postfix +%{_datadir}/ansible/roles/%{rolecompatprefix}postfix +# no examples for postfix yet +#%%doc %%{_pkgdocdir}/postfix/example-*-playbook.yml + +%doc %{_pkgdocdir}/postfix/README.md +%doc %{_datadir}/ansible/roles/%{rolecompatprefix}postfix/README.md +%license %{_datadir}/ansible/roles/%{rolecompatprefix}postfix/COPYING %changelog +* Thu Aug 2 2018 Pavel Cahyna - 1.0-2 +- Rebase the network role to the last revision (d866422). + Many improvements to tests, introduces autodetection of the current provider + and defaults to using profile name as interface name. +- Update the description. + +* Wed Aug 1 2018 Pavel Cahyna - 1.0-1 +- Rebase the selinux, timesync and kdump roles to their 1.0rc1 versions. + Many changes to the role interfaces to make them more consistent + and conforming to Ansible best practices. +- Split the postfix role into a -techpreview subpackage, we do not consider + it stable yet. + * Wed Mar 14 2018 Pavel Cahyna - 0.6-3 - Minor corrections of the previous change by Till Maas.