Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
E
etersoft-admin-essentials
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
etersoft
etersoft-admin-essentials
Commits
f33a24b2
Commit
f33a24b2
authored
Jan 28, 2018
by
Vitaly Lipatov
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
add ansible playbooks
parent
5073602c
Hide whitespace changes
Inline
Side-by-side
Showing
19 changed files
with
278 additions
and
0 deletions
+278
-0
autoremove.yml
ansible/playbooks/autoremove.yml
+13
-0
clean_desktop.yml
ansible/playbooks/clean_desktop.yml
+15
-0
fix_bz2_logs.yml
ansible/playbooks/fix_bz2_logs.yml
+11
-0
fix_chromium_etersoft.retry
ansible/playbooks/fix_chromium_etersoft.retry
+2
-0
fix_chromium_etersoft.yml
ansible/playbooks/fix_chromium_etersoft.yml
+15
-0
fix_locales.retry
ansible/playbooks/fix_locales.retry
+1
-0
fix_locales.yml
ansible/playbooks/fix_locales.yml
+41
-0
fix_snmp.yml
ansible/playbooks/fix_snmp.yml
+23
-0
gluster_check_rda-cache-limit.retry
ansible/playbooks/gluster_check_rda-cache-limit.retry
+15
-0
gluster_check_rda-cache-limit.yml
ansible/playbooks/gluster_check_rda-cache-limit.yml
+8
-0
gluster_update_from_task.retry
ansible/playbooks/gluster_update_from_task.retry
+9
-0
gluster_update_from_task.yml
ansible/playbooks/gluster_update_from_task.yml
+16
-0
test_mysql.retry
ansible/playbooks/test_mysql.retry
+1
-0
test_mysql.yml
ansible/playbooks/test_mysql.yml
+18
-0
upgrade_desktop.retry
ansible/playbooks/upgrade_desktop.retry
+4
-0
upgrade_desktop.yml
ansible/playbooks/upgrade_desktop.yml
+16
-0
upgrade_kernel_desktop.retry
ansible/playbooks/upgrade_kernel_desktop.retry
+2
-0
upgrade_kernel_desktop.yml
ansible/playbooks/upgrade_kernel_desktop.yml
+12
-0
upgrade_mysql.yml
ansible/playbooks/upgrade_mysql.yml
+56
-0
No files found.
ansible/playbooks/autoremove.yml
0 → 100644
View file @
f33a24b2
---
-
hosts
:
desktop
gather_facts
:
no
#any_errors_fatal: true
tasks
:
-
name
:
epm update
shell
:
epm update
# register: bz2logs
# - debug: msg="{{ epmu.stdout }}"
# - debug: msg="{{ epmu.stderr }}"
-
name
:
epm autoremove
shell
:
epm autoremove
ansible/playbooks/clean_desktop.yml
0 → 100644
View file @
f33a24b2
---
-
hosts
:
desktop
gather_facts
:
no
tasks
:
-
name
:
update repositories
shell
:
epm update
register
:
epmu
-
name
:
clean files
shell
:
rm -fv /etc/apt/apt.conf.d/apt.libnss.conf
-
name
:
epm autoremove
shell
:
epm autoremove
ansible/playbooks/fix_bz2_logs.yml
0 → 100644
View file @
f33a24b2
---
-
hosts
:
gluster
gather_facts
:
no
#any_errors_fatal: true
tasks
:
-
name
:
fiz bz2 logs
shell
:
cd /var/log && find -name "*.bz2" -print -delete
register
:
bz2logs
# - debug: msg="{{ epmu.stdout }}"
# - debug: msg="{{ epmu.stderr }}"
ansible/playbooks/fix_chromium_etersoft.retry
0 → 100644
View file @
f33a24b2
grape
nun
ansible/playbooks/fix_chromium_etersoft.yml
0 → 100644
View file @
f33a24b2
---
-
hosts
:
desktop
gather_facts
:
no
tasks
:
-
name
:
fix chromium etersoft
lineinfile
:
dest
:
/etc/chromium/default
regexp
:
'
^CHROMIUM_FLAGS=.*'
line
:
'
CHROMIUM_FLAGS="$CHROMIUM_FLAGS
--auth-server-whitelist=*.etersoft.ru,*.eterhost.ru"'
state
:
present
#register: fix
# - debug: msg="{{ fix.stdout }}"
# - debug: msg="{{ fix.stderr }}"
ansible/playbooks/fix_locales.retry
0 → 100644
View file @
f33a24b2
nagios
ansible/playbooks/fix_locales.yml
0 → 100644
View file @
f33a24b2
---
-
hosts
:
nagios
gather_facts
:
no
tasks
:
-
name
:
fix _install_langs
#shell: subst "s|.*_install_langs.*||g" /etc/rpm/macros ; subst "s|^$.*_install_langs.*|%_install_langs C:en:ru|g" /etc/rpm/macros
#shell: subst "s|^$.*_install_langs.*|%_install_langs C:en:ru|g" /etc/rpm/macros
lineinfile
:
dest
:
/etc/rpm/macros
regexp
:
'
^%_install_langs.*'
line
:
'
%_install_langs
C:en:ru'
state
:
present
#register: fix
# - debug: msg="{{ fix.stdout }}"
# - debug: msg="{{ fix.stderr }}"
-
name
:
update repositories
shell
:
epmu
register
:
epmu
# - debug: msg="{{ epmu.stdout }}"
# - debug: msg="{{ epmu.stderr }}"
-
name
:
update glibc
shell
:
epmi glibc-core
register
:
epmi
# - debug: msg="{{ epmi.stdout }}"
# - debug: msg="{{ epmi.stderr }}"
-
name
:
reinstall glibc-locales
shell
:
epme glibc-locales --nodeps ; epmi glibc-locales
register
:
epmi
# - debug: msg="{{ epmi.stdout }}"
# - debug: msg="{{ epmi.stderr }}"
-
name
:
cleanup extra locales
shell
:
cd /usr/share/locale ; ls -1 | grep -Ev "^(en.*|ru.*)" | xargs rm -rfv
register
:
cleanup
# - debug: msg="{{ cleanup.stdout }}"
# - debug: msg="{{ cleanup.stderr }}"
ansible/playbooks/fix_snmp.yml
0 → 100644
View file @
f33a24b2
---
-
hosts
:
desktop
gather_facts
:
no
#any_errors_fatal: true
tasks
:
-
name
:
fix sysconfig snmpd
#shell: subst "s|.*_install_langs.*||g" /etc/rpm/macros ; subst "s|^$.*_install_langs.*|%_install_langs C:en:ru|g" /etc/rpm/macros
#shell: subst "s|^$.*_install_langs.*|%_install_langs C:en:ru|g" /etc/rpm/macros
lineinfile
:
dest
:
/etc/sysconfig/snmpd
regexp
:
'
^OPTIONS.*'
line
:
'
OPTIONS="-Ln
-p
/var/run/snmpd.pid
-a
-u
snmp
-g
snmp"'
state
:
present
#register: fix
# - debug: msg="{{ fix.stdout }}"
# - debug: msg="{{ fix.stderr }}"
-
name
:
snmpd restart
shell
:
serv snmpd restart
register
:
snmpd
# - debug: msg="{{ epmu.stdout }}"
# - debug: msg="{{ epmu.stderr }}"
ansible/playbooks/gluster_check_rda-cache-limit.retry
0 → 100644
View file @
f33a24b2
asu
builder32
builder64
cellar
download
euclid
lav
lin-test
multi
nun
server
snail
space1
virtualbox
windsor
ansible/playbooks/gluster_check_rda-cache-limit.yml
0 → 100644
View file @
f33a24b2
---
-
hosts
:
gluster
gather_facts
:
no
#any_errors_fatal: true
tasks
:
-
name
:
check info
shell
:
grep rda-cache-limit /var/lib/glusterd/vols/ftp-pvt/*
ansible/playbooks/gluster_update_from_task.retry
0 → 100644
View file @
f33a24b2
builder32
builder64
cellar
euclid
lav
nun
server
virtualbox
windsor
ansible/playbooks/gluster_update_from_task.yml
0 → 100644
View file @
f33a24b2
---
-
hosts
:
gluster
gather_facts
:
no
#any_errors_fatal: true
tasks
:
-
name
:
add repo
shell
:
epm addrepo 198327
-
name
:
update repo
shell
:
epm update ||
true
-
name
:
update gluster
shell
:
epm install glusterfs3 --auto
-
name
:
restart gluster
shell
:
serv glusterd restart
-
name
:
remove repo
shell
:
epm removerepo 198327
ansible/playbooks/test_mysql.retry
0 → 100644
View file @
f33a24b2
clients
ansible/playbooks/test_mysql.yml
0 → 100644
View file @
f33a24b2
---
-
hosts
:
alt-openvz
gather_facts
:
no
tasks
:
-
name
:
Find vz with mysql
shell
:
vzctl exec mysql hostname
register
:
tralala
sudo
:
no
-
name
:
The fool command
shell
:
hostname
register
:
tralalala
sudo
:
no
-
debug
:
msg="{{ tralala.stdout }}"
-
debug
:
msg="{{ tralala.stderr }}"
-
debug
:
msg="{{ tralalala.stdout }}"
-
debug
:
msg="{{ tralalala.stderr }}"
ansible/playbooks/upgrade_desktop.retry
0 → 100644
View file @
f33a24b2
euclid
grape
nun
virtualbox
ansible/playbooks/upgrade_desktop.yml
0 → 100644
View file @
f33a24b2
---
-
hosts
:
desktop
gather_facts
:
no
tasks
:
-
name
:
update repositories
shell
:
epm update
register
:
epmu
# - name: upgrade --no-remove
# shell: epm upgrade --auto --no-remove
# TODO: сначала смотреть, что там удаляется
-
name
:
upgrade
shell
:
epm upgrade --auto
ansible/playbooks/upgrade_kernel_desktop.retry
0 → 100644
View file @
f33a24b2
grape
multi
ansible/playbooks/upgrade_kernel_desktop.yml
0 → 100644
View file @
f33a24b2
---
-
hosts
:
desktop
gather_facts
:
no
tasks
:
-
name
:
update repositories
shell
:
epm update
register
:
epmu
-
name
:
upgrade kernel
shell
:
echo y | epm update-kernel
ansible/playbooks/upgrade_mysql.yml
0 → 100644
View file @
f33a24b2
---
-
hosts
:
alt-openvz centos-openvz
gather_facts
:
no
tasks
:
-
name
:
update repositories
shell
:
vzctl exec mysql epmu
register
:
epmu
-
debug
:
msg="{{ epmu.stdout }}"
-
debug
:
msg="{{ epmu.stderr }}"
-
name
:
upgrade MySQL-server
shell
:
vzctl exec mysql epmi MySQL-server
register
:
epmi
-
debug
:
msg="{{ epmi.stdout }}"
-
debug
:
msg="{{ epmi.stderr }}"
-
name
:
MySQL update operation
shell
:
vzctl exec mysql mysql_upgrade
register
:
upgrd
-
debug
:
msg="{{ upgrd.stdout }}"
-
debug
:
msg="{{ upgrd.stderr }}"
-
name
:
restart service
shell
:
vzctl exec mysql service mysqld restart
register
:
restart
-
debug
:
msg="{{ restart.stdout }}"
-
debug
:
msg="{{ restart.stderr }}"
-
hosts
:
mysql-on-hosts
gather_facts
:
no
tasks
:
-
name
:
update repositories
shell
:
epmu
register
:
epmu
-
debug
:
msg="{{ epmu.stdout }}"
-
debug
:
msg="{{ epmu.stderr }}"
-
name
:
upgrade MySQL-server
shell
:
epmi MySQL-server
register
:
epmi
-
debug
:
msg="{{ epmi.stdout }}"
-
debug
:
msg="{{ epmi.stderr }}"
-
name
:
MySQL update operation
shell
:
mysql_upgrade
register
:
upgrd
-
debug
:
msg="{{ upgrd.stdout }}"
-
debug
:
msg="{{ upgrd.stderr }}"
-
name
:
restart service
shell
:
service mysqld restart
register
:
restart
-
debug
:
msg="{{ restart.stdout }}"
-
debug
:
msg="{{ restart.stderr }}"
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment