[debops.console] Remove issue/MOTD management

The management of the '/etc/issue' and '/etc/motd' files is now
available in the 'debops.machine' Ansible role.
parent 8b996eef
...@@ -118,6 +118,11 @@ Removed ...@@ -118,6 +118,11 @@ Removed
'debops.locales' role. You will need to update the Ansible inventory 'debops.locales' role. You will need to update the Ansible inventory
variables to reflect the changes. variables to reflect the changes.
- [debops.console] Remove management of the :file:`/etc/issue` and
:file:`/etc/motd` files from the ``debops.console`` role. That functionality
is now available in the :ref:`debops.machine` role. You will need to update
the Ansible inventory variables to reflect the changes.
debops v0.6.0 - 2017-10-21 debops v0.6.0 - 2017-10-21
-------------------------- --------------------------
......
--- ---
# Custom string added to /etc/issue
console_issue: '{{ ansible_domain.split(".")[0] | capitalize }}'
# If ``True``, show the logged in users. Note that this count does only update
# when the screen is manually refreshed.
console__issue_show_logged_in_users: True
# Enable or disable serial console (allows you to use 'lxc-console', # Enable or disable serial console (allows you to use 'lxc-console',
# 'virsh console' and other similar commands) # 'virsh console' and other similar commands)
console_serial: False console_serial: False
...@@ -23,12 +16,6 @@ console_serial_term: 'xterm' ...@@ -23,12 +16,6 @@ console_serial_term: 'xterm'
# String used to enable serial console in sysvinit /etc/inittab # String used to enable serial console in sysvinit /etc/inittab
console_serial_inittab: 'S0:2345:respawn:/sbin/getty -L {{ console_serial_port }} {{ console_serial_baud }} {{ console_serial_term }}' console_serial_inittab: 'S0:2345:respawn:/sbin/getty -L {{ console_serial_port }} {{ console_serial_baud }} {{ console_serial_term }}'
# Contents of /etc/motd
console_motd: |
-------------------------------------------------
This system is managed by Ansible
-------------------------------------------------
# List of required console packages # List of required console packages
console_base_packages: [ 'locales' ] console_base_packages: [ 'locales' ]
......
...@@ -37,27 +37,6 @@ ...@@ -37,27 +37,6 @@
console_register_inittab.stat.exists)) console_register_inittab.stat.exists))
notify: [ 'Reload sysvinit' ] notify: [ 'Reload sysvinit' ]
- name: Divert original /etc/issue
command: dpkg-divert --quiet --local --divert /etc/issue.dpkg-divert --rename /etc/issue
args:
creates: '/etc/issue.dpkg-divert'
- name: Configure /etc/issue
template:
src: '{{ lookup("template_src", "etc/issue.j2") }}'
dest: '/etc/issue'
owner: 'root'
group: 'root'
mode: '0644'
- name: Configure /etc/motd
template:
src: '{{ lookup("template_src", "etc/motd.j2") }}'
dest: '/etc/motd'
owner: 'root'
group: 'root'
mode: '0644'
- name: Configure fsck behaviour on boot - name: Configure fsck behaviour on boot
lineinfile: lineinfile:
dest: '/etc/default/rcS' dest: '/etc/default/rcS'
......
 /\\ \n.\O
 / \\ {{ console_issue }}
 DebOps
 \\ / \l{% if (console__issue_show_logged_in_users|bool) %} / \U{% endif %}
 \\/ \s \r
...@@ -47,6 +47,20 @@ Inventory variable changes ...@@ -47,6 +47,20 @@ Inventory variable changes
:envvar:`group of hosts <locales__group_list>`, :envvar:`specific hosts <locales__host_list>` :envvar:`group of hosts <locales__group_list>`, :envvar:`specific hosts <locales__host_list>`
and :envvar:`dependent roles <locales__dependent_list>`. and :envvar:`dependent roles <locales__dependent_list>`.
- The :file:`/etc/issue` and :file:`/etc/motd` configuration has been removed
from the ``debops.console`` role and is now done by the :ref:`debops.machine`
role. List of default variables that were affected:
+-------------------+---------------------------------+---------------+
| Old variable name | New variable name | Changed value |
+===================+=================================+===============+
| ``console_issue`` | :envvar:`machine__organization` | No |
+-------------------+---------------------------------+---------------+
| ``console_motd`` | :envvar:`machine__motd` | No |
+-------------------+---------------------------------+---------------+
The support for dynamic MOTD has been implemented by the :ref:`debops.machine`
role, you might want to use that instead of the static MOTD file.
v0.6.0 v0.6.0
------ ------
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment