Merge "openafs-client: add service timeout override"
This commit is contained in:
commit
1289e32f6d
@ -43,3 +43,10 @@ role has limited platform support. Currently supported are
|
|||||||
:default: no
|
:default: no
|
||||||
|
|
||||||
Enable or disable gpg checking for ``openafs_yum_repo_url``
|
Enable or disable gpg checking for ``openafs_yum_repo_url``
|
||||||
|
|
||||||
|
.. zuul:rolevar:: openafs_client_service_timeout_sec
|
||||||
|
:default: 480
|
||||||
|
|
||||||
|
The TimeoutSec for service start. Accounting for the cache
|
||||||
|
during startup can cause a high load which may necessitate
|
||||||
|
a longer startup timeout on some platforms.
|
||||||
|
@ -1,3 +1,4 @@
|
|||||||
openafs_client_cell: 'openstack.org'
|
openafs_client_cell: 'openstack.org'
|
||||||
openafs_client_cache_directory: '/var/cache/openafs'
|
openafs_client_cache_directory: '/var/cache/openafs'
|
||||||
openafs_client_cache_size: 500000
|
openafs_client_cache_size: 500000
|
||||||
|
openafs_client_service_timeout_sec: 480
|
||||||
|
@ -62,6 +62,23 @@
|
|||||||
mode: 0700
|
mode: 0700
|
||||||
become: yes
|
become: yes
|
||||||
|
|
||||||
|
- name: Set timeout override
|
||||||
|
become: yes
|
||||||
|
block:
|
||||||
|
- name: Create service override directory
|
||||||
|
file:
|
||||||
|
path: '/etc/systemd/system/openafs-client.service.d'
|
||||||
|
state: directory
|
||||||
|
owner: root
|
||||||
|
group: root
|
||||||
|
mode: 0755
|
||||||
|
- name: Save override
|
||||||
|
template:
|
||||||
|
dest: '/etc/systemd/system/openafs-client.service.d/timeout.conf'
|
||||||
|
src: 'timeout.conf.j2'
|
||||||
|
group: root
|
||||||
|
mode: 0644
|
||||||
|
|
||||||
- name: Setup OS specific openafs-client environment
|
- name: Setup OS specific openafs-client environment
|
||||||
include_tasks: "{{ lookup('first_found', params) }}"
|
include_tasks: "{{ lookup('first_found', params) }}"
|
||||||
vars:
|
vars:
|
||||||
|
2
roles/openafs-client/templates/timeout.conf.j2
Normal file
2
roles/openafs-client/templates/timeout.conf.j2
Normal file
@ -0,0 +1,2 @@
|
|||||||
|
[Service]
|
||||||
|
TimeoutSec={{ openafs_client_service_timeout_sec }}
|
Loading…
x
Reference in New Issue
Block a user