Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
S
slapos.package
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Guillaume Hervier
slapos.package
Commits
5290c99b
Commit
5290c99b
authored
Jan 06, 2016
by
Nicolas Wavrant
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
playbook: several improvements in re6stnet-upgrader.
parent
2b3ff264
Changes
5
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
23 additions
and
41 deletions
+23
-41
playbook/roles/re6stnet-upgrader/files/key_2EB4D2F994A63987.gpg
...ok/roles/re6stnet-upgrader/files/key_2EB4D2F994A63987.gpg
+0
-19
playbook/roles/re6stnet-upgrader/tasks/debian.yml
playbook/roles/re6stnet-upgrader/tasks/debian.yml
+2
-3
playbook/roles/re6stnet-upgrader/tasks/fill_cache.yml
playbook/roles/re6stnet-upgrader/tasks/fill_cache.yml
+15
-0
playbook/roles/re6stnet-upgrader/tasks/main.yml
playbook/roles/re6stnet-upgrader/tasks/main.yml
+1
-19
playbook/roles/re6stnet-upgrader/tasks/rhel.yml
playbook/roles/re6stnet-upgrader/tasks/rhel.yml
+5
-0
No files found.
playbook/roles/re6stnet-upgrader/files/key_2EB4D2F994A63987.gpg
deleted
100644 → 0
View file @
2b3ff264
-----BEGIN PGP PUBLIC KEY BLOCK-----
Version: GnuPG v1.4.5 (GNU/Linux)
mQGiBE9rM7ARBACILnCus7kJJtRKskvLcQVl1/cIF241w1XSeK23HHn/lpKjNmQ8
C6Uaqe4RI6aBMtJq7/9pcoq165Cz+fjW5xJYRdOTCJV+8gVCeXeJ1juAxZ2cU5NB
uAJ/7rG9mu2WgtSO8s5O8Hihpmn8Z/xEnYn+Fh45lG3u9+Lkum/WMSJ+mwCg1Jw3
P2T+dffvvWrZgvfacWz0uEMD/2M+2B9XJ0Ga4Z+yVuU57CvsaHJMGnPVnwsgCu8u
KIvkawiOg/HzNgIj88yETu0Q8HhuwfbdusRfv22MGmxvqvLGDGUSkkzQ/bev2vSc
fQAerKe2+BAV3QdPWhsVh2OTLEgDn7j+qewxih2+l6ASATs++6VX3JPuISKi5XMV
1aAvA/4vyG9evJ6DlAxfd235t3LUsYSmzKa5/1Wv4bVfAQXism4oGS4vygaTFqs7
tsBitWSmp+Jo7Fc7a5QRX/yL3uyDkXBB7NLPmYitFT5OvcdKg4U0fHigWxhzl8Xs
GMQZrlokbwJ/JxLlB1xYmdotfEYCwMJYc9momYg21FvMPfFu9rRCaG9tZTpWSUZJ
Qm5leGVkaSBPQlMgUHJvamVjdCA8aG9tZTpWSUZJQm5leGVkaUBidWlsZC5vcGVu
c3VzZS5vcmc+iGYEExECACYFAlOMizICGwMFCQhAB4IGCwkIBwMCBBUCCAMEFgID
AQIeAQIXgAAKCRAutNL5lKY5h3y4AJ4qgG9vVq7jPWW+oiFlO+xW9X7YrgCgs/oW
2c0IgUcwyXKNlbSYqGyu0l2IRgQTEQIABgUCT2szsAAKCRA7MBG3a51lI7sdAJ9q
/+6D3FndEZieHpJw/kG1eZLu/ACeKk0hcqg9zrFwj21oBr96kOBXCTs=
=8ciq
-----END PGP PUBLIC KEY BLOCK-----
playbook/roles/re6stnet-upgrader/tasks/debian.yml
View file @
5290c99b
...
...
@@ -8,11 +8,10 @@
-
apt_key
:
data
:
"
{{
lookup('file',
'key_1A716324.gpg')
}}"
-
apt_key
:
data
:
"
{{
lookup('file',
'key_2EB4D2F994A63987.gpg')
}}"
-
name
:
Purge old re6stnet package
apt
:
name=re6stnet state=absent purge=yes
-
include
:
fill_cache.yml
-
name
:
Install re6st-node package
apt
:
name=re6st-node update_cache=yes state=latest
playbook/roles/re6stnet-upgrader/tasks/fill_cache.yml
0 → 100644
View file @
5290c99b
---
-
copy
:
src
:
re6st_db_create.sql
dest
:
/tmp/
owner
:
root
group
:
root
mode
:
0644
-
file
:
path=/var/lib/re6stnet owner=root group=root mode=0755 state=directory
-
name
:
Create new cache
shell
:
sqlite3 /var/lib/re6stnet/cache.db < /tmp/re6st_db_create.sql && rm /tmp/re6st_db_create.sql
-
name
:
Fill new cache
command
:
sqlite3 -noheader -csv /var/lib/re6stnet/cache.db ".import {{ export_csv.stdout }} peer"
playbook/roles/re6stnet-upgrader/tasks/main.yml
View file @
5290c99b
...
...
@@ -12,7 +12,7 @@
when
:
ansible_os_family == "Centos" or ansible_os_family == "RedHat"
-
name
:
Dump cache
shell
:
sqlite3 -noheader -csv /var/lib/re6stnet/peers.db "select * from peer;" > {{ export_csv.stdout }} removes=/var/lib/re6stnet/peers.db
shell
:
sqlite3 -noheader -csv /var/lib/re6stnet/peers.db "select * from peer;" > {{ export_csv.stdout }} removes=/var/lib/re6stnet/peers.db
-
include
:
debian.yml
when
:
ansible_os_family == "Debian"
...
...
@@ -20,22 +20,4 @@
-
include
:
rhel.yml
when
:
ansible_os_family == "Centos" or ansible_os_family == "RedHat"
-
file
:
path=/var/lib/re6stnet owner=root group=root mode=0755 state=directory
-
copy
:
src
:
re6st_db_create.sql
dest
:
/tmp/
owner
:
root
group
:
root
mode
:
0644
-
name
:
Create new cache
shell
:
sqlite3 /var/lib/re6stnet/cache.db < /tmp/re6st_db_create.sql && rm /tmp/re6st_db_create.sql
-
name
:
Fill new cache
command
:
sqlite3 -noheader -csv /var/lib/re6stnet/cache.db ".import {{ export_csv.stdout }} peer"
-
name
:
Restart re6stnet service
service
:
name=re6stnet enabled=yes state=restarted
-
command
:
rm {{ export_csv.stdout }}
playbook/roles/re6stnet-upgrader/tasks/rhel.yml
View file @
5290c99b
...
...
@@ -10,5 +10,10 @@
-
name
:
Purge old re6stnet package
yum
:
name=re6stnet state=absent
-
include
:
fill_cache.yml
-
name
:
Install re6st-node package
yum
:
name=re6st-node update_cache=yes state=latest
-
name
:
Restart re6stnet service
service
:
name=re6stnet enabled=yes state=restarted
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