9fd2135a46
Extract eavedrop into its own service playbook and puppet manifest. While doing that, stop using jenkinsuser on eavesdrop in favor of zuul-user. Add the ability to override the keys for the zuul user. Remove openstack_project::server, it doesn't do anything. Containerize and anisblize accessbot. The structure of how we're doing it in puppet makes it hard to actually run the puppet in the gate. Run the script in its own playbook so that we can avoid running it in the gate. Change-Id: I53cb63ffa4ae50575d4fa37b24323ad13ec1bac3
26 lines
683 B
YAML
26 lines
683 B
YAML
# Setting hostname with systemd apparently
|
|
# requires dbus. We have this on our cloud-provided
|
|
# nodes, but not on the minimal ones we get from
|
|
# nodepool.
|
|
- name: ensure dbus for working hostnamectl
|
|
become: true
|
|
apt:
|
|
name: dbus
|
|
state: present
|
|
|
|
# Set hostname and /etc/hosts
|
|
# Inspired by:
|
|
# https://github.com/ansible/ansible/pull/8482)
|
|
# https://gist.github.com/rothgar/8793800
|
|
- name: Set /etc/hostname
|
|
become: true
|
|
hostname: name="{{ inventory_hostname.split('.', 1)[0] }}"
|
|
|
|
- name: Set /etc/hosts
|
|
become: true
|
|
template: src=hosts.j2 dest=/etc/hosts mode=0644
|
|
|
|
- name: Set /etc/mailname
|
|
become: true
|
|
template: src=mailname.j2 dest=/etc/mailname mode=0644
|