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
Jérome Perrin
slapos.package
Commits
958254c7
Commit
958254c7
authored
Jun 17, 2016
by
Alain Takoudjou
Committed by
Rafael Monnerat
Jun 23, 2016
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
playbook: merge base-setup with install scripts
parent
69b33d0f
Changes
5
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
30 additions
and
51 deletions
+30
-51
playbook/roles/install-script/templates/dev.j2
playbook/roles/install-script/templates/dev.j2
+10
-9
playbook/roles/install-script/templates/install.j2
playbook/roles/install-script/templates/install.j2
+5
-11
playbook/roles/install-script/templates/install_slapos.j2
playbook/roles/install-script/templates/install_slapos.j2
+5
-11
playbook/roles/install-script/templates/install_slapos_testing.j2
.../roles/install-script/templates/install_slapos_testing.j2
+5
-10
playbook/roles/install-script/templates/install_unstable.j2
playbook/roles/install-script/templates/install_unstable.j2
+5
-10
No files found.
playbook/roles/install-script/templates/dev.j2
View file @
958254c7
#!/bin/bash
PLAYBOOK_REPOSITORY_URL
=
https://lab.nexedi.com/nexedi/slapos.package.git
set
-e
#
# Paste content of function-common
# https://lab.nexedi.com/nexedi/slapos.package/blob/master/playbook/roles/install-script/files/function-common
#
#### Setup Ansible and load few libraries #####
BASE_SETUP_SCRIPT_MD5
={{
base_setup.stat.md5
}}
wget
--no-check-certificate
https://deploy.erp5.cn/base-setup
-O
/tmp/base-setup
{{
lookup
(
'file'
, base_path+
'/install/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
#### Setup Ansible and load few libraries #####
PLAYBOOK_REPOSITORY_URL
=
https://lab.nexedi.com/nexedi/slapos.package.git
is_package_installed git
||
install_package git
...
...
playbook/roles/install-script/templates/install.j2
View file @
958254c7
...
...
@@ -2,19 +2,13 @@
set
-e
#### Setup Ansible and load few libraries #####
BASE_SETUP_SCRIPT_MD5
={{
base_setup.stat.md5
}}
#
# Paste content of function-common
# https://lab.nexedi.com/nexedi/slapos.package/blob/master/playbook/roles/install-script/files/function-common
#
type
wget
>
/dev/null 2>&1
||
{
echo
>
&2
"I require wget but it's not installed. Aborting."
;
exit
1
;
}
wget
--no-check-certificate
https://deploy.erp5.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
{{
lookup
(
'file'
, base_path+
'/install/base-setup'
)
}}
download_playbook
clear
...
...
playbook/roles/install-script/templates/install_slapos.j2
View file @
958254c7
...
...
@@ -2,19 +2,13 @@
set
-e
#### Setup Ansible and load few libraries #####
BASE_SETUP_SCRIPT_MD5
={{
base_setup.stat.md5
}}
#
# Paste content of function-common
# https://lab.nexedi.com/nexedi/slapos.package/blob/master/playbook/roles/install-script/files/function-common
#
type
wget
>
/dev/null 2>&1
||
{
echo
>
&2
"I require wget but it's not installed. Aborting."
;
exit
1
;
}
wget
--no-check-certificate
https://deploy.erp5.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
{{
lookup
(
'file'
, base_path+
'/install/base-setup'
)
}}
# Include Additional Functions
if
[
!
-f
/etc/opt/slapcache.cfg
]
;
then
...
...
playbook/roles/install-script/templates/install_slapos_testing.j2
View file @
958254c7
...
...
@@ -2,19 +2,14 @@
set
-e
#### Setup Ansible and load few libraries #####
BASE_SETUP_SCRIPT_MD5
={{
base_setup.stat.md5
}}
#
# Paste content of function-common
# https://lab.nexedi.com/nexedi/slapos.package/blob/master/playbook/roles/install-script/files/function-common
#
type
wget
>
/dev/null 2>&1
||
{
echo
>
&2
"I require wget but it's not installed. Aborting."
;
exit
1
;
}
wget
--no-check-certificate
https://deploy.erp5.cn/base-setup
-O
/tmp/base-setup
{{
lookup
(
'file'
, base_path+
'/install/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
# Include Additional Functions
if
[
!
-f
/etc/opt/slapcache.cfg
]
;
then
...
...
playbook/roles/install-script/templates/install_unstable.j2
View file @
958254c7
...
...
@@ -2,19 +2,14 @@
set
-e
#### Setup Ansible and load few libraries #####
BASE_SETUP_SCRIPT_MD5
={{
base_setup.stat.md5
}}
#
# Paste content of function-common
# https://lab.nexedi.com/nexedi/slapos.package/blob/master/playbook/roles/install-script/files/function-common
#
type
wget
>
/dev/null 2>&1
||
{
echo
>
&2
"I require wget but it's not installed. Aborting."
;
exit
1
;
}
wget
--no-check-certificate
https://deploy.erp5.cn/base-setup
-O
/tmp/base-setup
{{
lookup
(
'file'
, base_path+
'/install/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
# Include Additional Functions
if
[
!
-f
/etc/opt/slapcache.cfg
]
;
then
...
...
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