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
Kirill Smelkov
slapos.package
Commits
3d1c5f50
Commit
3d1c5f50
authored
Jun 15, 2015
by
Rafael Monnerat
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
playbook: Use package state as parameter,
In this way we can reuse the same roles for upgrade
parent
efa71753
Changes
7
Hide whitespace changes
Inline
Side-by-side
Showing
7 changed files
with
12 additions
and
12 deletions
+12
-12
playbook/gnet-server.yml
playbook/gnet-server.yml
+2
-2
playbook/roles/re6stnet-legacy/tasks/main.yml
playbook/roles/re6stnet-legacy/tasks/main.yml
+2
-2
playbook/roles/slapos/tasks/main.yml
playbook/roles/slapos/tasks/main.yml
+2
-2
playbook/slapos-test-node.yml
playbook/slapos-test-node.yml
+1
-1
playbook/slapos.yml
playbook/slapos.yml
+1
-1
playbook/vifib-shuttle.yml
playbook/vifib-shuttle.yml
+2
-2
playbook/vifib.yml
playbook/vifib.yml
+2
-2
No files found.
playbook/gnet-server.yml
View file @
3d1c5f50
...
...
@@ -22,7 +22,7 @@
default
:
"
notoken"
roles
:
-
re6stnet
-
slapos
-
{
role
:
re6stnet
,
package_state
:
present
}
-
{
role
:
slapos
,
package_state
:
present
}
-
{
role
:
package
,
package_name
:
ntp
,
package_state
:
present
}
playbook/roles/re6stnet-legacy/tasks/main.yml
View file @
3d1c5f50
...
...
@@ -13,11 +13,11 @@
when
:
ansible_distribution == "Debian"
-
name
:
Install re6stnet package
apt
:
name=babeld=1.5.1-nxd2 state=
present
update_cache=yes
apt
:
name=babeld=1.5.1-nxd2 state=
{{ package_state }}
update_cache=yes
when
:
ansible_distribution == "Debian"
-
name
:
Install re6stnet package
apt
:
name=re6stnet state=
present
update_cache=yes
apt
:
name=re6stnet state=
{{ package_state }}
update_cache=yes
when
:
ansible_distribution == "Debian"
-
name
:
Check if configuration exists already
...
...
playbook/roles/slapos/tasks/main.yml
View file @
3d1c5f50
-
name
:
Install packages using apt
apt
:
name=slapos-node state=
present
update_cache=yes cache_valid_time=3600
apt
:
name=slapos-node state=
{{ package_state }}
update_cache=yes cache_valid_time=3600
when
:
ansible_os_family == "Debian"
-
name
:
Install re6stnet on CentOS
yum
:
name=slapos.node state=
present
update_cache=yes
yum
:
name=slapos.node state=
{{ package_state }}
update_cache=yes
when
:
ansible_os_family == "RedHat"
-
name
:
Check if configuration exists already
...
...
playbook/slapos-test-node.yml
View file @
3d1c5f50
...
...
@@ -21,6 +21,6 @@
default
:
"
notoken"
roles
:
-
slapos
-
{
role
:
slapos
,
package_state
:
present
}
-
{
role
:
package
,
package_name
:
ntp
,
package_state
:
present
}
-
rafael_ssh_key
playbook/slapos.yml
View file @
3d1c5f50
...
...
@@ -17,7 +17,7 @@
default
:
"
notoken"
roles
:
-
slapos
-
{
role
:
slapos
,
package_state
:
present
}
-
{
role
:
package
,
package_name
:
ntp
,
package_state
:
present
}
playbook/vifib-shuttle.yml
View file @
3d1c5f50
...
...
@@ -17,8 +17,8 @@
default
:
"
notoken"
roles
:
-
re6stnet-legacy
-
slapos
-
{
role
:
re6stnet-legacy
,
package_state
:
present
}
-
{
role
:
slapos
,
package_state
:
present
}
-
{
role
:
package
,
package_name
:
ntp
,
package_state
:
present
}
-
vifib-server-shuttle
playbook/vifib.yml
View file @
3d1c5f50
...
...
@@ -17,8 +17,8 @@
default
:
"
notoken"
roles
:
-
re6stnet-legacy
-
slapos
-
{
role
:
re6stnet-legacy
,
package_state
:
present
}
-
{
role
:
slapos
,
package_state
:
present
}
-
{
role
:
package
,
package_name
:
ntp
,
package_state
:
present
}
-
vifib-server
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