Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
K
Kubespray
Manage
Activity
Members
Code
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Deploy
Model registry
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Mirror
Kubespray
Commits
cb202a76
Commit
cb202a76
authored
7 years ago
by
Antoine Legrand
Browse files
Options
Downloads
Patches
Plain Diff
Fix tests
parent
e1d139db
No related branches found
No related tags found
No related merge requests found
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
.gitlab-ci.yml
+3
-3
3 additions, 3 deletions
.gitlab-ci.yml
tests/Makefile
+8
-8
8 additions, 8 deletions
tests/Makefile
tests/cloud_playbooks/create-do.yml
+3
-0
3 additions, 0 deletions
tests/cloud_playbooks/create-do.yml
tests/files/ubuntu-canal-ha-do.yml
+1
-1
1 addition, 1 deletion
tests/files/ubuntu-canal-ha-do.yml
with
15 additions
and
12 deletions
.gitlab-ci.yml
+
3
−
3
View file @
cb202a76
...
...
@@ -24,7 +24,7 @@ variables:
RESET_CHECK
:
"
false"
UPGRADE_TEST
:
"
false"
KUBEADM_ENABLED
:
"
false"
LOG_LEVEL
:
"
-vv"
LOG_LEVEL
:
"
-vv
v
"
# asia-east1-a
# asia-northeast1-a
...
...
@@ -484,8 +484,8 @@ coreos-calico-aio:
<<
:
*job
<<
:
*gce
variables
:
<<
:
*gce_variables
<<
:
*coreos_calico_aio_variables
<<
:
*gce_variables
when
:
on_success
except
:
[
'
triggers'
]
# only: [/^pr-.*$/]
...
...
@@ -495,7 +495,7 @@ ubuntu-canal-ha-do:
<<
:
*job
<<
:
*do
variables
:
<<
:
*
gce
_variables
<<
:
*
do
_variables
when
:
on_success
except
:
[
'
triggers'
]
# only: [/^pr-.*$/]
...
...
This diff is collapsed.
Click to expand it.
tests/Makefile
+
8
−
8
View file @
cb202a76
...
...
@@ -5,17 +5,16 @@ $(HOME)/.ssh/id_rsa:
init-gce
:
$(HOME)/.ssh/id_rsa
# echo
$(
GCE_PEM_FILE
)
|
base64
-d
>
$(
HOME
)
/.ssh/gce
echo
"
$(
GCE_CREDENTIALS
)
"
>
$(
HOME
)
/.ssh/gce.json
echo
"
$(
GCE_CREDENTIALS_B64
)
"
>
$(
HOME
)
/.ssh/gce.json
init-do
:
$(HOME)/.ssh/id_rsa
pip
install
dopy
pip
install
dopy
==
0.3.5
echo
$(
DO_PRIVATE_KEY
)
|
base64
-d
>
$(
HOME
)
/.ssh/id_rsa
create-gce
:
init-gce
ansible-playbook cloud_playbooks/create-gce.yml
-i
local_inventory/hosts.cfg
-c
local
\
$(
LOG_LEVEL
)
\
-e
@
$(
CI_TEST_VARS
)
\
-e
@
"files/
${
CI_JOB_NAME
}
.yml"
\
-e
gce_credentials_file
=
$(
HOME
)
/.ssh/gce.json
\
-e
gce_project_id
=
$(
GCE_PROJECT_ID
)
\
-e
gce_service_account_email
=
$(
GCE_ACCOUNT
)
\
...
...
@@ -27,7 +26,7 @@ create-gce: init-gce
delete-gce
:
ansible-playbook
-i
../inventory/sample/hosts.ini cloud_playbooks/delete-gce.yml
-c
local
\
$(
LOG_LEVEL
)
\
-e
@
$(
CI_TEST_VARS
)
\
-e
@
"files/
${
CI_JOB_NAME
}
.yml"
\
-e
test_id
=
$(
TEST_ID
)
\
-e
gce_project_id
=
$(
GCE_PROJECT_ID
)
\
-e
gce_service_account_email
=
$(
GCE_ACCOUNT
)
\
...
...
@@ -35,16 +34,17 @@ delete-gce:
-e
inventory_path
=
$(
PWD
)
/inventory/sample/hosts.ini
create-do
:
init-do
ansible-playbook cloud_playbooks/create-do.yml
-i
tests/
local_inventory/hosts.cfg
-c
local
\
ansible-playbook cloud_playbooks/create-do.yml
-i
local_inventory/hosts.cfg
-c
local
\
${
LOG_LEVEL
}
\
-e
@
$(
CI_TEST_VARS
)
\
-e
@
"files/
${
CI_JOB_NAME
}
.yml"
\
-e
inventory_path
=
${
PWD
}
/../inventory/hosts.ini
\
-e
test_id
=
${
TEST_ID
}
delete-do
:
ansible-playbook
-i
../inventory/sample/hosts.ini
tests/
cloud_playbooks/create-do.yml
-c
local
\
ansible-playbook
-i
../inventory/sample/hosts.ini cloud_playbooks/create-do.yml
-c
local
\
$LOG_LEVEL
\
-e
@
"files/
${
CI_JOB_NAME
}
.yml"
\
-e
state
=
absent
\
-e
test_id
=
${
TEST_ID
}
\
-e
inventory_path
=
${
PWD
}
/../inventory/inventory.ini
\
This diff is collapsed.
Click to expand it.
tests/cloud_playbooks/create-do.yml
+
3
−
0
View file @
cb202a76
...
...
@@ -54,6 +54,9 @@
set_fact
:
test_name
:
"
{{test_id
|regex_replace('
\\
.',
'-')}}"
-
name
:
show vars
debug
:
msg="{{cloud_region}}, {{cloud_image}}"
-
set_fact
:
instance_names
:
>-
{%- if mode in ['separate', 'ha'] -%}
...
...
This diff is collapsed.
Click to expand it.
tests/files/ubuntu-canal-ha-do.yml
+
1
−
1
View file @
cb202a76
cloud_image
:
ubuntu-16-04-x64
cloud_region
:
NYC
3
cloud_region
:
nyc
3
mode
:
ha
# Deployment settings
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment