Merge branch 'master' of /git/ansible
This commit is contained in:
commit
d4d7bb25e5
5 changed files with 22 additions and 56 deletions
|
@ -20,4 +20,4 @@ buildslave_private_sshkey_file: stg-buildslave-sshkey/stg_buildslave
|
|||
buildslave_public_sshkey_file: stg-buildslave-sshkey/stg_buildslave.pub
|
||||
taskotron_admin_email: taskotron-admin-members@fedoraproject.org
|
||||
sudoers: "{{ private }}/files/sudo/qavirt-sudoers"
|
||||
buildmaster_pubkey: ""
|
||||
buildmaster_pubkey: 'ecdsa-sha2-nistp256 AAAAE2VjZHNhLXNoYTItbmlzdHAyNTYAAAAIbmlzdHAyNTYAAABBBJJ4xAImruf8x0ghwxfq0DM6S00pSoEhpI1VZiG2DT14xD+eMubFQcUMpoQ3IBs3eaatlwVr2qjM4EEBfds/1Zs='
|
||||
|
|
14
roles/fedmsg/gateway/files/fedmsg-gateway.service
Normal file
14
roles/fedmsg/gateway/files/fedmsg-gateway.service
Normal file
|
@ -0,0 +1,14 @@
|
|||
[Unit]
|
||||
Description=Outbound fedmsg gateway
|
||||
After=network.target
|
||||
Documentation=http://fedmsg.readthedocs.org/en/latest/commands/
|
||||
|
||||
[Service]
|
||||
ExecStart=/usr/bin/fedmsg-gateway
|
||||
Type=simple
|
||||
User=fedmsg
|
||||
Group=fedmsg
|
||||
LimitNOFILE=160000
|
||||
|
||||
[Install]
|
||||
WantedBy=multi-user.target
|
|
@ -1,53 +0,0 @@
|
|||
# /etc/security/limits.conf
|
||||
#
|
||||
#Each line describes a limit for a user in the form:
|
||||
#
|
||||
#<domain> <type> <item> <value>
|
||||
#
|
||||
#Where:
|
||||
#<domain> can be:
|
||||
# - an user name
|
||||
# - a group name, with @group syntax
|
||||
# - the wildcard *, for default entry
|
||||
# - the wildcard %, can be also used with %group syntax,
|
||||
# for maxlogin limit
|
||||
#
|
||||
#<type> can have the two values:
|
||||
# - "soft" for enforcing the soft limits
|
||||
# - "hard" for enforcing hard limits
|
||||
#
|
||||
#<item> can be one of the following:
|
||||
# - core - limits the core file size (KB)
|
||||
# - data - max data size (KB)
|
||||
# - fsize - maximum filesize (KB)
|
||||
# - memlock - max locked-in-memory address space (KB)
|
||||
# - nofile - max number of open files
|
||||
# - rss - max resident set size (KB)
|
||||
# - stack - max stack size (KB)
|
||||
# - cpu - max CPU time (MIN)
|
||||
# - nproc - max number of processes
|
||||
# - as - address space limit (KB)
|
||||
# - maxlogins - max number of logins for this user
|
||||
# - maxsyslogins - max number of logins on the system
|
||||
# - priority - the priority to run user process with
|
||||
# - locks - max number of file locks the user can hold
|
||||
# - sigpending - max number of pending signals
|
||||
# - msgqueue - max memory used by POSIX message queues (bytes)
|
||||
# - nice - max nice priority allowed to raise to values: [-20, 19]
|
||||
# - rtprio - max realtime priority
|
||||
#
|
||||
#<domain> <type> <item> <value>
|
||||
#
|
||||
|
||||
#* soft core 0
|
||||
#* hard rss 10000
|
||||
#@student hard nproc 20
|
||||
#@faculty soft nproc 20
|
||||
#@faculty hard nproc 50
|
||||
#ftp hard nproc 0
|
||||
#@student - maxlogins 4
|
||||
|
||||
@fedmsg hard nofile 170000
|
||||
@fedmsg soft nofile 160000
|
||||
|
||||
# End of file
|
|
@ -20,8 +20,10 @@
|
|||
notify:
|
||||
- restart fedmsg-gateway
|
||||
|
||||
- name: bump fs limits
|
||||
copy: src=limits.conf dest=/etc/security/limits.conf
|
||||
- name: bump fs limits by installing our own systemd service file
|
||||
copy: >
|
||||
src=fedmsg-gateway.service
|
||||
dest=/usr/lib/systemd/system/fedmsg-gateway.service
|
||||
tags:
|
||||
- config
|
||||
- fedmsg/gateway
|
||||
|
|
|
@ -23,3 +23,6 @@
|
|||
template: src=fetch_activity.cron.j2 dest=/etc/cron.d/fetch_activity.cron owner=root group=root mode=0644
|
||||
notify:
|
||||
- restart crond
|
||||
|
||||
- name: start and enable fedmsg-hub service
|
||||
service: name=fedmsg-hub enabled=yes state=started
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue