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
05fe4738
Commit
05fe4738
authored
Apr 24, 2015
by
Rafael Monnerat
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Reorganise a Bit more
parent
7b6e9fe7
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
12 additions
and
14 deletions
+12
-14
install/base-setup
install/base-setup
+11
-0
install/slapos.sh
install/slapos.sh
+1
-14
No files found.
install/base-setup
View file @
05fe4738
...
...
@@ -4,6 +4,17 @@ wget --no-check-certificate https://lab.nexedi.cn/rafael/slapos.playbook/raw/mas
source
/tmp/function-common
function
download_playbook
{
DFILE
=
"/tmp/tmpplaybook
$(
basename
$0
)
.
$$
/"
TFILE
=
"archive.tar.gz"
mkdir
-p
$DFILE
cd
$DFILE
wget
$1
-O
$TFILE
tar
-xzvf
$TFILE
rm
$TFILE
cd
*
/playbook
}
# Determine what system we are running on. This provides ``os_VENDOR``,
# ``os_RELEASE``, ``os_UPDATE``, ``os_PACKAGE``, ``os_CODENAME``
# and ``DISTRO``
...
...
install/slapos.sh
View file @
05fe4738
#!/bin/bash
PLAYBOOK_REPOSITORY_URL
=
https://lab.nexedi.cn/rafael/slapos.playbook/repository/archive.tar.gz?ref
=
master
PLAYBOOK_BASE_FOLDER
=
slapos.playbook.git
PLAYBOOK_RELATIVE_URL
=
$PLAYBOOK_BASE_FOLDER
/playbook/slapos
wget
--no-check-certificate
https://lab.nexedi.cn/rafael/slapos.playbook/raw/master/install/base-setup
-O
/tmp/base-setup
source
/tmp/base-setup
function
download_playbook
{
DFILE
=
"/tmp/tmp
$(
basename
$0
)
.
$$
/"
TFILE
=
"archive.tar.gz"
cd
$DFILE
wget
$1
-O
$TFILE
tar
-xzvf
$TFILE
rm
$TFILE
cd
*
/playbook
}
download_playbook
$PLAYBOOK_REPOSITORY_URL
clear
echo
"Staring ansible..."
ansible-playbook s
lapos
.yml
-i
hosts
--connection
=
local
ansible-playbook s
ite
.yml
-i
hosts
--connection
=
local
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