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
Ayush Tiwari
slapos.package
Commits
3ea9f0d9
Commit
3ea9f0d9
authored
Sep 08, 2016
by
Alain Takoudjou
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
playbook vm-bootstrap: fix warning messages on deprecated bare vars and shell usage in some tasks
parent
d2a2521b
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
16 additions
and
13 deletions
+16
-13
playbook/imt-vm-bootstrap.yml
playbook/imt-vm-bootstrap.yml
+13
-10
playbook/roles/logrotate/tasks/main.yml
playbook/roles/logrotate/tasks/main.yml
+1
-1
playbook/roles/vm-bootstrap/tasks/hostname.yml
playbook/roles/vm-bootstrap/tasks/hostname.yml
+1
-1
playbook/roles/vm-bootstrap/tasks/main.yml
playbook/roles/vm-bootstrap/tasks/main.yml
+1
-1
No files found.
playbook/imt-vm-bootstrap.yml
View file @
3ea9f0d9
...
@@ -2,6 +2,18 @@
...
@@ -2,6 +2,18 @@
hosts
:
127.0.0.1
hosts
:
127.0.0.1
connection
:
local
connection
:
local
vars
:
logrotate_args
:
-
name
:
vm-bootstrap
path
:
/var/log/vm-bootstrap.log
options
:
-
weekly
-
compress
-
rotate
5
-
notifempty
-
create
-
dateext
roles
:
roles
:
-
{
role
:
vm-bootstrap
,
startup_playbook_id
:
imt-vm-bootstrap.yml
}
-
{
role
:
vm-bootstrap
,
startup_playbook_id
:
imt-vm-bootstrap.yml
}
-
ntp
-
ntp
...
@@ -26,14 +38,5 @@
...
@@ -26,14 +38,5 @@
-
{
role
:
vm-disks
,
vd_disk
:
t
,
data_n
:
12
}
-
{
role
:
vm-disks
,
vd_disk
:
t
,
data_n
:
12
}
-
{
role
:
vm-disks
,
vd_disk
:
u
,
data_n
:
12
}
-
{
role
:
vm-disks
,
vd_disk
:
u
,
data_n
:
12
}
-
role
:
logrotate
-
role
:
logrotate
logrotate_scripts
:
logrotate_scripts
:
"
{{logrotate_args}}"
-
name
:
vm-bootstrap
path
:
/var/log/vm-bootstrap.log
options
:
-
weekly
-
compress
-
rotate
5
-
notifempty
-
create
-
dateext
playbook/roles/logrotate/tasks/main.yml
View file @
3ea9f0d9
...
@@ -6,5 +6,5 @@
...
@@ -6,5 +6,5 @@
template
:
template
:
src
:
logrotate.d.j2
src
:
logrotate.d.j2
dest
:
/etc/logrotate.d/{{ item.name }}
dest
:
/etc/logrotate.d/{{ item.name }}
with_items
:
logrotate_scripts
with_items
:
"
{{logrotate_scripts}}"
when
:
logrotate_scripts is defined
when
:
logrotate_scripts is defined
playbook/roles/vm-bootstrap/tasks/hostname.yml
View file @
3ea9f0d9
...
@@ -37,7 +37,7 @@
...
@@ -37,7 +37,7 @@
when
:
hostname_file.stat.exists == True
when
:
hostname_file.stat.exists == True
-
name
:
setting cluster
-
name
:
setting cluster
shell
:
wget --no-check-certificate "{{ lookup('file', '/etc/opt/cluster.hash') }}/hosts" -O /tmp/hosts
get_url
:
url={{ lookup('file', '/etc/opt/cluster.hash') }}/hosts dest=/tmp/hosts validate_certs=no
when
:
cluster_hash.stat.exists == True
when
:
cluster_hash.stat.exists == True
-
name
:
stat /tmp/hosts
-
name
:
stat /tmp/hosts
...
...
playbook/roles/vm-bootstrap/tasks/main.yml
View file @
3ea9f0d9
...
@@ -51,7 +51,7 @@
...
@@ -51,7 +51,7 @@
-
include
:
sudo.yml
-
include
:
sudo.yml
-
include
:
ssh.yml
-
include
:
ssh.yml
-
shell
:
mkdir -p /opt/upgrader
-
file
:
path=/opt/upgrader state=directory
-
stat
:
path=/opt/upgrader/last-upgrade
-
stat
:
path=/opt/upgrader/last-upgrade
register
:
last_upgrade
register
:
last_upgrade
...
...
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