Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
S
slapos.playbook
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
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Kristopher Ruzic
slapos.playbook
Commits
4cd484eb
Commit
4cd484eb
authored
May 22, 2015
by
Rafael Monnerat
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Include role for test-nodes
parent
2fa7bf42
Changes
5
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
54 additions
and
0 deletions
+54
-0
build_install_folder
build_install_folder
+1
-0
install/slapos-test-node
install/slapos-test-node
+23
-0
playbook/roles/rafael_ssh_key/files/rafael_key
playbook/roles/rafael_ssh_key/files/rafael_key
+1
-0
playbook/roles/rafael_ssh_key/tasks/main.yml
playbook/roles/rafael_ssh_key/tasks/main.yml
+6
-0
playbook/slapos-test-node.yml
playbook/slapos-test-node.yml
+23
-0
No files found.
build_install_folder
View file @
4cd484eb
...
...
@@ -14,6 +14,7 @@ render("slapos.yml", "install/slapos")
render("re6stnet.yml", "install/re6st")
render("erp5-standalone.yml", "install/erp5-standalone")
render("slapos-test-node.yml", "install/slapos-test-node")
# gnet
render("gnet-re6stnet.yml", "install/gnet/re6st")
...
...
install/slapos-test-node
0 → 100644
View file @
4cd484eb
#!/bin/bash
PLAYBOOK_REPOSITORY_URL
=
https://lab.nexedi.cn/rafael/slapos.playbook/repository/archive.tar.gz?ref
=
master
PLAYBOOK_FILE
=
slapos-test-node.yml
#### Setup Ansible and load few libraries #####
BASE_SETUP_SCRIPT_MD5
=
e2c9b43ccff6e606ad25cd1df0e2705f
wget
--no-check-certificate
https://deploy.nexedi.cn/base-setup
-O
/tmp/base-setup
if
[
"
`
md5sum
/tmp/base-setup |
cut
-f1
-d
\
`
"
!=
"
$BASE_SETUP_SCRIPT_MD5
"
]
;
then
echo
"ERROR: base-setup has wrong md5
`
md5sum
/tmp/base-setup |
cut
-f1
-d
\
`
!=
$BASE_SETUP_SCRIPT_MD5
"
exit
1
fi
source
/tmp/base-setup
download_playbook
$PLAYBOOK_REPOSITORY_URL
echo
"Starting Ansible playbook:"
ansible-playbook
$PLAYBOOK_FILE
-i
hosts
--connection
=
local
\ No newline at end of file
playbook/roles/rafael_ssh_key/files/rafael_key
0 → 100644
View file @
4cd484eb
ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAABAQDHMFf/eh931HRskwFHRHg28Cajic6jdxVIH/gRMaxBFI+FgYOeb1ovehBa/C6vQGYqhlJf+Kuz9HsXyebVqH55yg/2BsSh6QQolgWwwwoWvTTFY2QRQwhkNSykWdHJhURNU2BGpPi0qTWnYj/jGN2hJFvOMbHtwzuMtKSLeFXh6d8A4cTWmme0FTKNqJfMYX2bOsnKWleLB25DDrs50IN2+bVThVt/70M24yervnyxhqnGpyTm9XJEI7nnLoWCK0UVr78kpQlikjSwhRggTjPRx1SrqRNNotHbbMEb5rCBTZc0s0klwKVzr77g3AOgAYRz9QM/l995Npm987AgbFuj rafael@localhost
playbook/roles/rafael_ssh_key/tasks/main.yml
0 → 100644
View file @
4cd484eb
-
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/slapos-test-node.yml
0 → 100644
View file @
4cd484eb
-
name
:
a play that runs entirely on the ansible host
hosts
:
127.0.0.1
connection
:
local
vars_files
:
-
settings/vifib.yml
vars_prompt
:
-
name
:
"
computer_name"
prompt
:
"
What
is
this
computer
name?
(ignore
if
you
already
have
a
configured
re6st
and
slapos):"
private
:
no
default
:
"
noname"
-
name
:
"
slapostoken"
prompt
:
"
If
you
have
slapos
token
if
you
have
(ignore
if
you
already
have
a
configured
slapos):"
private
:
no
default
:
"
notoken"
roles
:
-
slapos
-
{
role
:
package
,
package_name
:
ntp
,
package_state
:
present
}
-
rafael_ssh_key
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