From 91742e1857c6c39131e05816165286c24c4aaa8e Mon Sep 17 00:00:00 2001 From: Jean-Philippe Evrard Date: Wed, 14 Mar 2018 10:06:02 +0000 Subject: [PATCH] Import systemd_mount and systemd_service to OSA This patch adds the generic roles systemd_mount, systemd_networkd, and systemd_service, manipulating systemd units. This is for DRY purposes. An individual core group is added, but the general OSA core group would have core capabilities as a back-stop for now, until more diversity is found. Needed-By: https://review.openstack.org/#/c/552866/ Change-Id: Ic139198d4ef3fdd9c6d1ba3555e6e94a20b613bc --- .../ansible-role-systemd_mount.config | 15 +++++++++++++++ .../ansible-role-systemd_networkd.config | 15 +++++++++++++++ .../ansible-role-systemd_service.config | 15 +++++++++++++++ gerrit/projects.yaml | 18 ++++++++++++++++++ gerritbot/channels.yaml | 3 +++ zuul/main.yaml | 3 +++ 6 files changed, 69 insertions(+) create mode 100644 gerrit/acls/openstack/ansible-role-systemd_mount.config create mode 100644 gerrit/acls/openstack/ansible-role-systemd_networkd.config create mode 100644 gerrit/acls/openstack/ansible-role-systemd_service.config diff --git a/gerrit/acls/openstack/ansible-role-systemd_mount.config b/gerrit/acls/openstack/ansible-role-systemd_mount.config new file mode 100644 index 0000000000..d08a686159 --- /dev/null +++ b/gerrit/acls/openstack/ansible-role-systemd_mount.config @@ -0,0 +1,15 @@ +[access "refs/heads/*"] +abandon = group ansible-role-systemd_mount-core +abandon = group openstack-ansible-core +create = group openstack-ansible-release +label-Code-Review = -2..+2 group ansible-role-systemd_mount-core +label-Code-Review = -2..+2 group openstack-ansible-core +label-Workflow = -1..+1 group ansible-role-systemd_mount-core +label-Workflow = -1..+1 group openstack-ansible-core + +[receive] +requireChangeId = true +requireContributorAgreement = true + +[submit] +mergeContent = true diff --git a/gerrit/acls/openstack/ansible-role-systemd_networkd.config b/gerrit/acls/openstack/ansible-role-systemd_networkd.config new file mode 100644 index 0000000000..eb8aa6a307 --- /dev/null +++ b/gerrit/acls/openstack/ansible-role-systemd_networkd.config @@ -0,0 +1,15 @@ +[access "refs/heads/*"] +abandon = group ansible-role-systemd_networkd-core +abandon = group openstack-ansible-core +create = group openstack-ansible-release +label-Code-Review = -2..+2 group ansible-role-systemd_networkd-core +label-Code-Review = -2..+2 group openstack-ansible-core +label-Workflow = -1..+1 group ansible-role-systemd_networkd-core +label-Workflow = -1..+1 group openstack-ansible-core + +[receive] +requireChangeId = true +requireContributorAgreement = true + +[submit] +mergeContent = true diff --git a/gerrit/acls/openstack/ansible-role-systemd_service.config b/gerrit/acls/openstack/ansible-role-systemd_service.config new file mode 100644 index 0000000000..829168d36a --- /dev/null +++ b/gerrit/acls/openstack/ansible-role-systemd_service.config @@ -0,0 +1,15 @@ +[access "refs/heads/*"] +abandon = group ansible-role-systemd_service-core +abandon = group openstack-ansible-core +create = group openstack-ansible-release +label-Code-Review = -2..+2 group ansible-role-systemd_service-core +label-Code-Review = -2..+2 group openstack-ansible-core +label-Workflow = -1..+1 group ansible-role-systemd_service-core +label-Workflow = -1..+1 group openstack-ansible-core + +[receive] +requireChangeId = true +requireContributorAgreement = true + +[submit] +mergeContent = true diff --git a/gerrit/projects.yaml b/gerrit/projects.yaml index c5e52a2ad3..c7a62f4eae 100755 --- a/gerrit/projects.yaml +++ b/gerrit/projects.yaml @@ -952,6 +952,24 @@ description: Ansible role to manage SSH - project: openstack/ansible-role-sudoers description: Ansible role to manage Sudoers +- project: openstack/ansible-role-systemd_mount + description: Ansible role to manage systemd mount points + upstream: https://github.com/cloudnull/ansible-systemd_mount + groups: + - openstack-ansible + docimpact-group: openstack-ansible +- project: openstack/ansible-role-systemd_networkd + description: Ansible role to manage systemd networkd + upstream: https://github.com/cloudnull/ansible-systemd_networkd + groups: + - openstack-ansible + docimpact-group: openstack-ansible +- project: openstack/ansible-role-systemd_service + description: Ansible role to manage systemd services + upstream: https://github.com/cloudnull/ansible-systemd_service + groups: + - openstack-ansible + docimpact-group: openstack-ansible - project: openstack/ansible-role-virtualenv description: Ansible role to manage Virtualenv - project: openstack/ansible-role-zookeeper diff --git a/gerritbot/channels.yaml b/gerritbot/channels.yaml index 90ab36df16..c0058a24c4 100755 --- a/gerritbot/channels.yaml +++ b/gerritbot/channels.yaml @@ -154,6 +154,9 @@ openstack-ansible: - ^openstack/openstack-ansible.* # Then alphabetical order - openstack/ansible-hardening + - openstack/ansible-role-systemd_mount + - openstack/ansible-role-systemd_networkd + - openstack/ansible-role-systemd_service - openstack/monitorstack branches: - ^stable/.* diff --git a/zuul/main.yaml b/zuul/main.yaml index 826d0dc581..ee7daaac12 100644 --- a/zuul/main.yaml +++ b/zuul/main.yaml @@ -228,6 +228,9 @@ - openstack/ansible-role-shade - openstack/ansible-role-ssh - openstack/ansible-role-sudoers + - openstack/ansible-role-systemd_mount + - openstack/ansible-role-systemd_networkd + - openstack/ansible-role-systemd_service - openstack/ansible-role-virtualenv - openstack/ansible-role-zookeeper - openstack/ansible-role-zuul