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
Ivan Tyagov
slapos.package
Commits
e47a0f5f
Commit
e47a0f5f
authored
Jun 22, 2015
by
Rafael Monnerat
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'master' into 'master'
Use connection local to install slapcache. See merge request !5
parents
ee66590c
16ce27d0
Changes
10
Hide whitespace changes
Inline
Side-by-side
Showing
10 changed files
with
26 additions
and
18 deletions
+26
-18
playbook/install-script.yml
playbook/install-script.yml
+1
-0
playbook/roles/install-script/templates/base_setup.j2
playbook/roles/install-script/templates/base_setup.j2
+1
-1
playbook/roles/rafael_ssh_key/tasks/main.yml
playbook/roles/rafael_ssh_key/tasks/main.yml
+0
-3
playbook/roles/re6stnet-legacy/tasks/main.yml
playbook/roles/re6stnet-legacy/tasks/main.yml
+1
-1
playbook/roles/upgrader/tasks/main.yml
playbook/roles/upgrader/tasks/main.yml
+6
-2
playbook/roles/vifib-shuttle/tasks/main.yml
playbook/roles/vifib-shuttle/tasks/main.yml
+2
-5
playbook/roles/vifib-shuttle/tasks/user.yml
playbook/roles/vifib-shuttle/tasks/user.yml
+7
-0
playbook/vifib-shuttle.yml
playbook/vifib-shuttle.yml
+7
-2
playbook/vifib-upgrade.yml
playbook/vifib-upgrade.yml
+0
-3
playbook/vifib.yml
playbook/vifib.yml
+1
-1
No files found.
playbook/install-script.yml
View file @
e47a0f5f
...
...
@@ -36,6 +36,7 @@
-
{
role
:
"
install-script"
,
playbook_yml
:
"
slapos.yml"
,
script_path
:
"
install/slapos"
}
-
{
role
:
"
install-script"
,
playbook_yml
:
"
re6stnet.yml"
,
script_path
:
"
install/re6st"
}
-
{
role
:
"
install-script"
,
playbook_yml
:
"
vifib.yml"
,
script_path
:
"
install/vifib"
}
-
{
role
:
"
install-script"
,
playbook_yml
:
"
vifib-shuttle.yml"
,
script_path
:
"
install/vifib-shuttle"
}
-
{
role
:
"
install-script"
,
playbook_yml
:
"
erp5-standalone.yml"
,
script_path
:
"
install/erp5-standalone"
}
-
{
role
:
"
install-script"
,
playbook_yml
:
"
wendelin-standalone.yml"
,
script_path
:
"
install/wendelin-standalone"
}
-
{
role
:
"
install-script"
,
playbook_yml
:
"
slapos-test-node.yml"
,
script_path
:
"
install/slapos-test-node"
}
...
...
playbook/roles/install-script/templates/base_setup.j2
View file @
e47a0f5f
...
...
@@ -98,4 +98,4 @@ if is_ubuntu && [[ $DISTRO == "trusty" ]]; then
fi
ansible localhost -m easy_install -a name=slapcache
ansible localhost -m easy_install -a name=slapcache
--connection=local
playbook/roles/rafael_ssh_key/tasks/main.yml
View file @
e47a0f5f
-
name
:
Add rafael SSH Key
authorized_key
:
user=root key="{{ lookup('file', 'rafael_key') }}"
-
name
:
Add rafael SSH Key on slapos user
authorized_key
:
user=slapos key="{{ lookup('file', 'rafael_key') }}"
playbook/roles/re6stnet-legacy/tasks/main.yml
View file @
e47a0f5f
...
...
@@ -13,7 +13,7 @@
when
:
ansible_distribution == "Debian"
-
name
:
Install re6stnet package
apt
:
name=babeld=1.5.1-nxd2 state=
{{ package_state }}
update_cache=yes
apt
:
name=babeld=1.5.1-nxd2 state=
present
update_cache=yes
when
:
ansible_distribution == "Debian"
-
name
:
Install re6stnet package
...
...
playbook/roles/upgrader/tasks/main.yml
View file @
e47a0f5f
---
-
file
:
path=/opt/upgrader state=directory mode=0755
-
stat
:
path=/opt/upgrader/last-upgrade
register
:
last_upgrade
...
...
@@ -9,13 +11,15 @@
-
shell
:
rm -rf /opt/upgrader/playbook/
-
file
:
path=/opt/upgrader/playbook/ state=directory mode=0755
-
shell
:
mkdir -p /opt/upgrader/playbook
-
name
:
Periodically download the latest playbook
shell
:
slapcache-download --destination=/opt/upgrader/archive.tar.gz
-
name
:
Uncompress
unarchive
:
src=/opt/upgrader/archive.tar.gz dest=/opt/upgrader/playbook/
shell
:
tar -xzvf /opt/upgrader/archive.tar.gz
args
:
chdir
:
/opt/upgrader/playbook/
-
name
:
Save new archive MD5
stat
:
path=/opt/upgrader/archive.tar.gz
...
...
playbook/roles/vifib-shuttle/tasks/main.yml
View file @
e47a0f5f
...
...
@@ -6,7 +6,7 @@
shell
:
modprobe coretemp > /dev/null 2>&1
-
name
:
"
Load
f71882fg"
shell
:
modprobe f71882fg > /dev/null 2>&1
shell
:
echo "DISABLED modprobe f71882fg > /dev/null 2>&1"
-
name
:
"
Do
sysctl"
shell
:
sysctl -w net.ipv4.neigh.default.gc_thresh1=512 net.ipv4.neigh.default.gc_thresh2=1024 net.ipv4.neigh.default.gc_thresh3=2048 net.ipv6.neigh.default.gc_thresh1=512 net.ipv6.neigh.default.gc_thresh2=1024 net.ipv6.neigh.default.gc_thresh3=2048
...
...
@@ -14,7 +14,4 @@
-
name
:
echo 1 > /sys/kernel/mm/ksm/run
shell
:
echo 1 > /sys/kernel/mm/ksm/run
-
name
:
"
Install
firmware-realtek"
apt
:
name=firmware-realtek
apt
:
name=firmware-realtek state=latest update_cache=yes cache_valid_time=3600
when
:
ansible_os_family == "Debian"
-
include
:
user.yml
playbook/roles/vifib-shuttle/tasks/user.yml
0 → 100644
View file @
e47a0f5f
---
-
name
:
remove other unwanted users
user
:
name={{ item }} state=absent
with_items
:
-
slapos
-
nexedi
playbook/vifib-shuttle.yml
View file @
e47a0f5f
...
...
@@ -2,8 +2,12 @@
hosts
:
127.0.0.1
connection
:
local
vars
:
-
upgrader_playbook
:
vifib-upgrade.yml
vars_files
:
-
settings/vifib.yml
-
settings/upgrader.yml
vars_prompt
:
-
name
:
"
computer_name"
...
...
@@ -20,5 +24,6 @@
-
{
role
:
re6stnet-legacy
,
package_state
:
present
}
-
{
role
:
slapos
,
package_state
:
present
}
-
{
role
:
package
,
package_name
:
ntp
,
package_state
:
present
}
-
vifib-server-shuttle
-
rafael_ssh_key
-
vifib-shuttle
-
upgrader
playbook/vifib-upgrade.yml
View file @
e47a0f5f
...
...
@@ -3,7 +3,6 @@
connection
:
local
vars
:
-
upgrader-playbook
:
vifib-upgrader.yml
-
computer_name
:
noname
-
slapostoken
:
notoken
...
...
@@ -14,6 +13,4 @@
-
{
role
:
re6stnet-legacy
,
package_state
:
latest
}
-
{
role
:
slapos
,
package_state
:
latest
}
-
{
role
:
package
,
package_name
:
ntp
,
package_state
:
latest
}
-
{
role
:
package
,
package_name
:
ntp
,
package_state
:
latest
}
-
vifib-server
-
upgrader
playbook/vifib.yml
View file @
e47a0f5f
...
...
@@ -3,7 +3,7 @@
connection
:
local
vars
:
-
upgrader
-
playbook
:
vifib-upgrader.yml
-
upgrader
_
playbook
:
vifib-upgrader.yml
vars_files
:
-
settings/vifib.yml
...
...
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