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
15
Merge Requests
15
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
nexedi
slapos.package
Commits
a47223e8
Commit
a47223e8
authored
Jan 09, 2018
by
Alain Takoudjou
Committed by
Alain Takoudjou
Jan 10, 2018
1
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
playbook: move vifib-upgrade into role and add new vifib-kernel-upgrade playbook
parent
ece9e2e8
Changes
9
Show whitespace changes
Inline
Side-by-side
Showing
9 changed files
with
42 additions
and
31 deletions
+42
-31
playbook/roles/debian9-aptconf/tasks/main.yml
playbook/roles/debian9-aptconf/tasks/main.yml
+1
-1
playbook/roles/repository/meta/main.yml
playbook/roles/repository/meta/main.yml
+3
-0
playbook/roles/repository/tasks/main.yml
playbook/roles/repository/tasks/main.yml
+0
-2
playbook/roles/upgrader/tasks/main.yml
playbook/roles/upgrader/tasks/main.yml
+1
-1
playbook/roles/vifib-kernel/meta/main.yml
playbook/roles/vifib-kernel/meta/main.yml
+3
-0
playbook/roles/vifib-kernel/tasks/main.yml
playbook/roles/vifib-kernel/tasks/main.yml
+0
-3
playbook/roles/vifib-upgrade/meta/main.yml
playbook/roles/vifib-upgrade/meta/main.yml
+20
-0
playbook/vifib-kernel-upgrade.yml
playbook/vifib-kernel-upgrade.yml
+13
-0
playbook/vifib-upgrade.yml
playbook/vifib-upgrade.yml
+1
-24
No files found.
playbook/roles/debian9-aptconf/tasks/main.yml
View file @
a47223e8
-
copy
:
dest=/etc/apt/apt.conf.d/99slapos src=
../files/
99slapos
-
copy
:
dest=/etc/apt/apt.conf.d/99slapos src=99slapos
when
:
(ansible_distribution == "Debian" and ansible_distribution_major_version == "9") or (ansible_distribution == "Ubuntu" and ansible_distribution_major_version == "17")
-
name
:
Update repos for debian
9
...
...
playbook/roles/repository/meta/main.yml
0 → 100644
View file @
a47223e8
---
dependencies
:
-
{
role
:
debian9-aptconf
}
playbook/roles/repository/tasks/main.yml
View file @
a47223e8
...
...
@@ -121,5 +121,3 @@
when
:
ansible_distribution == "Fedora" and ansible_distribution_major_version == "26"
-
include
:
roles/debian9-aptconf/tasks/main.yml
playbook/roles/upgrader/tasks/main.yml
View file @
a47223e8
...
...
@@ -58,7 +58,7 @@
current_upgrade_signature
-
name
:
Do upgrade
shell
:
ansible-playbook {{ upgrader_playbook }} -
-extra-vars "vars_file={{vars_file | default('')}}" -
i hosts 2>>/opt/upgrader/latest_upgrade.log >> /opt/upgrader/latest_upgrade.log
shell
:
ansible-playbook {{ upgrader_playbook }} -i hosts 2>>/opt/upgrader/latest_upgrade.log >> /opt/upgrader/latest_upgrade.log
when
:
(upgrade_after > lookup('file', '/opt/upgrader/last-upgrade')|int ) and (lookup('file', '/opt/upgrader/next-upgrade-signature') != lookup('file', '/opt/upgrader/current-upgrade-signature'))
args
:
chdir
:
/opt/upgrader/playbook-tmp/
...
...
playbook/roles/vifib-kernel/meta/main.yml
0 → 100644
View file @
a47223e8
---
dependencies
:
-
{
role
:
debian9-aptconf
}
playbook/roles/vifib-kernel/tasks/main.yml
View file @
a47223e8
---
-
include
:
roles/debian9-aptconf/tasks/main.yml
when
:
ansible_distribution == "Debian" and ansible_distribution_major_version == "9"
-
name
:
Install kernel 4.9 on debian
9.0
apt
:
name=linux-image-4.9.0-5-amd64 state=latest update_cache=no
when
:
ansible_distribution == "Debian" and ansible_distribution_major_version == "9"
...
...
playbook/roles/vifib-upgrade/meta/main.yml
0 → 100644
View file @
a47223e8
---
dependencies
:
-
{
role
:
ntp
}
-
{
role
:
package
,
package_name
:
lm-sensors
,
package_state
:
latest
}
-
{
role
:
package
,
package_name
:
wget
,
package_state
:
latest
}
-
{
role
:
package
,
package_name
:
openssl
,
package_state
:
latest
}
-
{
role
:
package
,
package_name
:
ca-certificates
,
package_state
:
latest
}
-
{
role
:
package
,
package_name
:
openssh-server
,
package_state
:
latest
}
-
{
role
:
package
,
package_name
:
strace
,
package_state
:
latest
}
-
{
role
:
package
,
package_name
:
htop
,
package_state
:
latest
}
-
{
role
:
package
,
package_name
:
ioping
,
package_state
:
latest
}
-
{
role
:
package
,
package_name
:
exim4-base
,
package_state
:
absent
}
-
{
role
:
package
,
package_name
:
slapos-node
,
package_state
:
latest
}
-
{
role
:
package
,
package_name
:
re6st-node
,
package_state
:
latest
}
-
{
role
:
re6stnet
}
-
{
role
:
vifib-team-ssh-key
}
-
{
role
:
vifib-server
}
-
{
role
:
rsyslogd
}
-
{
role
:
sysstat
}
-
{
role
:
vifib-kernel
,
when
:
upgrade_kernel | default(False) == True
}
playbook/vifib-kernel-upgrade.yml
0 → 100644
View file @
a47223e8
-
name
:
a play that runs entirely on the ansible host
hosts
:
127.0.0.1
connection
:
local
vars
:
-
computer_name
:
noname
-
slapostoken
:
notoken
vars_files
:
-
settings/vifib.yml
roles
:
-
{
role
:
vifib-upgrade
,
upgrade_kernel
:
True
}
playbook/vifib-upgrade.yml
View file @
a47223e8
...
...
@@ -9,28 +9,5 @@
vars_files
:
-
settings/vifib.yml
pre_tasks
:
-
name
:
Load dynamic variables
include_vars
:
"
{{vars_file}}"
when
:
vars_file is defined and vars_file != ''
roles
:
-
ntp
-
{
role
:
package
,
package_name
:
lm-sensors
,
package_state
:
latest
}
-
{
role
:
package
,
package_name
:
wget
,
package_state
:
latest
}
-
{
role
:
package
,
package_name
:
openssl
,
package_state
:
latest
}
-
{
role
:
package
,
package_name
:
ca-certificates
,
package_state
:
latest
}
-
{
role
:
package
,
package_name
:
openssh-server
,
package_state
:
latest
}
-
{
role
:
package
,
package_name
:
strace
,
package_state
:
latest
}
-
{
role
:
package
,
package_name
:
htop
,
package_state
:
latest
}
-
{
role
:
package
,
package_name
:
ioping
,
package_state
:
latest
}
-
{
role
:
package
,
package_name
:
exim4-base
,
package_state
:
absent
}
-
{
role
:
package
,
package_name
:
slapos-node
,
package_state
:
latest
}
-
{
role
:
package
,
package_name
:
re6st-node
,
package_state
:
latest
}
-
re6stnet
-
vifib-team-ssh-key
-
vifib-server
-
rsyslogd
-
sysstat
-
role
:
vifib-kernel
when
:
upgrade_kernel | default(False) == True
-
{
role
:
vifib-upgrade
}
Rafael Monnerat
@rafael
mentioned in merge request
!42 (merged)
·
Mar 01, 2018
mentioned in merge request
!42 (merged)
mentioned in merge request !42
Toggle commit list
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