Skip to content
This repository has been archived by the owner on Oct 25, 2024. It is now read-only.

Commit

Permalink
Test
Browse files Browse the repository at this point in the history
  • Loading branch information
Renat Nurgaliyev committed Aug 2, 2018
1 parent 1bb3f1e commit 3dd05c2
Show file tree
Hide file tree
Showing 4 changed files with 119 additions and 112 deletions.
214 changes: 109 additions & 105 deletions ci/pipeline.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,14 +7,14 @@ resources:
uri: https://github.com/rnurgaliyev/infra-automation-class.git
branch: master

# - name: version
# type: semver
# source:
# driver: git
# uri: [email protected]:rnurgaliyev/infra-automation-class.git
# branch: version
# file: version
# private_key: ((SSH_KEY))
- name: version
type: semver
source:
driver: git
uri: [email protected]:rnurgaliyev/infra-automation-class.git
branch: version
file: version
private_key: ((SSH_KEY))

- name: release
type: github-release
Expand All @@ -24,78 +24,78 @@ resources:
access_token: ((GITHUB_TOKEN))

jobs:
# - name: keystone
# plan:
# - get: master
# trigger: true
# - task: automation test
# file: master/ci/tasks/kitchen-test.yml
# params:
# CI_COMPONENT: keystone
# SSH_KEY: ((SSH_KEY))
# OS_AUTH_URL: ((OS_AUTH_URL))
# OS_IDENTITY_API_VERSION: ((OS_IDENTITY_API_VERSION))
# OS_PROJECT_ID: ((OS_PROJECT_ID))
# OS_USER_DOMAIN_NAME: ((OS_USER_DOMAIN_NAME))
# OS_INTERFACE: ((OS_INTERFACE))
# OS_ENDPOINT_TYPE: ((OS_ENDPOINT_TYPE))
# OS_USERNAME: ((OS_USERNAME))
# OS_PASSWORD: ((OS_PASSWORD))
# OS_REGION_NAME: ((OS_REGION_NAME))
# OS_PROJECT_NAME: ((OS_PROJECT_NAME))
- name: keystone
plan:
- get: master
trigger: true
- task: automation test
file: master/ci/tasks/kitchen-test.yml
params:
CI_COMPONENT: keystone
OS_AUTH_URL: ((OS_AUTH_URL))
OS_ENDPOINT_TYPE: ((OS_ENDPOINT_TYPE))
OS_IDENTITY_API_VERSION: ((OS_IDENTITY_API_VERSION))
OS_INTERFACE: ((OS_INTERFACE))
OS_PASSWORD: ((OS_PASSWORD))
OS_PROJECT_ID: ((OS_PROJECT_ID))
OS_PROJECT_NAME: ((OS_PROJECT_NAME))
OS_REGION_NAME: ((OS_REGION_NAME))
OS_USER_DOMAIN_NAME: ((OS_USER_DOMAIN_NAME))
OS_USERNAME: ((OS_USERNAME))
SSH_KEY: ((SSH_KEY))

# - name: keystone-db
# plan:
# - get: master
# trigger: true
# - task: automation test
# file: master/ci/tasks/kitchen-test.yml
# params:
# CI_COMPONENT: keystone-db
# SSH_KEY: ((SSH_KEY))
# OS_AUTH_URL: ((OS_AUTH_URL))
# OS_IDENTITY_API_VERSION: ((OS_IDENTITY_API_VERSION))
# OS_PROJECT_ID: ((OS_PROJECT_ID))
# OS_USER_DOMAIN_NAME: ((OS_USER_DOMAIN_NAME))
# OS_INTERFACE: ((OS_INTERFACE))
# OS_ENDPOINT_TYPE: ((OS_ENDPOINT_TYPE))
# OS_USERNAME: ((OS_USERNAME))
# OS_PASSWORD: ((OS_PASSWORD))
# OS_REGION_NAME: ((OS_REGION_NAME))
# OS_PROJECT_NAME: ((OS_PROJECT_NAME))
- name: keystone-db
plan:
- get: master
trigger: true
- task: automation test
file: master/ci/tasks/kitchen-test.yml
params:
CI_COMPONENT: keystone-db
OS_AUTH_URL: ((OS_AUTH_URL))
OS_ENDPOINT_TYPE: ((OS_ENDPOINT_TYPE))
OS_IDENTITY_API_VERSION: ((OS_IDENTITY_API_VERSION))
OS_INTERFACE: ((OS_INTERFACE))
OS_PASSWORD: ((OS_PASSWORD))
OS_PROJECT_ID: ((OS_PROJECT_ID))
OS_PROJECT_NAME: ((OS_PROJECT_NAME))
OS_REGION_NAME: ((OS_REGION_NAME))
OS_USER_DOMAIN_NAME: ((OS_USER_DOMAIN_NAME))
OS_USERNAME: ((OS_USERNAME))
SSH_KEY: ((SSH_KEY))

# - name: loadbalancer
# plan:
# - get: master
# trigger: true
# - task: automation test
# file: master/ci/tasks/kitchen-test.yml
# params:
# CI_COMPONENT: loadbalancer
# SSH_KEY: ((SSH_KEY))
# OS_AUTH_URL: ((OS_AUTH_URL))
# OS_IDENTITY_API_VERSION: ((OS_IDENTITY_API_VERSION))
# OS_PROJECT_ID: ((OS_PROJECT_ID))
# OS_USER_DOMAIN_NAME: ((OS_USER_DOMAIN_NAME))
# OS_INTERFACE: ((OS_INTERFACE))
# OS_ENDPOINT_TYPE: ((OS_ENDPOINT_TYPE))
# OS_USERNAME: ((OS_USERNAME))
# OS_PASSWORD: ((OS_PASSWORD))
# OS_REGION_NAME: ((OS_REGION_NAME))
# OS_PROJECT_NAME: ((OS_PROJECT_NAME))
- name: loadbalancer
plan:
- get: master
trigger: true
- task: automation test
file: master/ci/tasks/kitchen-test.yml
params:
CI_COMPONENT: loadbalancer
OS_AUTH_URL: ((OS_AUTH_URL))
OS_ENDPOINT_TYPE: ((OS_ENDPOINT_TYPE))
OS_IDENTITY_API_VERSION: ((OS_IDENTITY_API_VERSION))
OS_INTERFACE: ((OS_INTERFACE))
OS_PASSWORD: ((OS_PASSWORD))
OS_PROJECT_ID: ((OS_PROJECT_ID))
OS_PROJECT_NAME: ((OS_PROJECT_NAME))
OS_REGION_NAME: ((OS_REGION_NAME))
OS_USER_DOMAIN_NAME: ((OS_USER_DOMAIN_NAME))
OS_USERNAME: ((OS_USERNAME))
SSH_KEY: ((SSH_KEY))

# - name: Publish release
# plan:
# - get: master
# passed: [keystone, keystone-db, loadbalancer]
# trigger: true
# - put: version
# params:
# bump: minor
# - put: release
# params:
# name: version/version
# tag: version/version
- name: Publish release
plan:
- get: master
passed: [keystone, keystone-db, loadbalancer]
trigger: true
- put: version
params:
bump: minor
- put: release
params:
name: version/version
tag: version/version

- name: Build images
plan:
Expand All @@ -105,34 +105,38 @@ jobs:
include_source_tarball: true
- get: master
- aggregate:
# - task: Build keystone image
# file: master/ci/tasks/build-image.yml
# params:
# CI_COMPONENT: keystone
# OS_AUTH_URL: ((OS_AUTH_URL))
# OS_IDENTITY_API_VERSION: ((OS_IDENTITY_API_VERSION))
# OS_PROJECT_ID: ((OS_PROJECT_ID))
# OS_USER_DOMAIN_NAME: ((OS_USER_DOMAIN_NAME))
# OS_INTERFACE: ((OS_INTERFACE))
# OS_ENDPOINT_TYPE: ((OS_ENDPOINT_TYPE))
# OS_USERNAME: ((OS_USERNAME))
# OS_PASSWORD: ((OS_PASSWORD))
# OS_REGION_NAME: ((OS_REGION_NAME))
# OS_PROJECT_NAME: ((OS_PROJECT_NAME))
# - task: Build keystone-db image
# file: master/ci/tasks/build-image.yml
# params:
# CI_COMPONENT: keystone-db
# OS_AUTH_URL: ((OS_AUTH_URL))
# OS_IDENTITY_API_VERSION: ((OS_IDENTITY_API_VERSION))
# OS_PROJECT_ID: ((OS_PROJECT_ID))
# OS_USER_DOMAIN_NAME: ((OS_USER_DOMAIN_NAME))
# OS_INTERFACE: ((OS_INTERFACE))
# OS_ENDPOINT_TYPE: ((OS_ENDPOINT_TYPE))
# OS_USERNAME: ((OS_USERNAME))
# OS_PASSWORD: ((OS_PASSWORD))
# OS_REGION_NAME: ((OS_REGION_NAME))
# OS_PROJECT_NAME: ((OS_PROJECT_NAME))
- task: Build keystone image
file: master/ci/tasks/build-image.yml
params:
CI_COMPONENT: keystone
OS_AUTH_URL: ((OS_AUTH_URL))
OS_DOMAIN_NAME: ((OS_DOMAIN_NAME))
OS_ENDPOINT_TYPE: ((OS_ENDPOINT_TYPE))
OS_IDENTITY_API_VERSION: ((OS_IDENTITY_API_VERSION))
OS_INTERFACE: ((OS_INTERFACE))
OS_PASSWORD: ((OS_PASSWORD))
OS_PROJECT_ID: ((OS_PROJECT_ID))
OS_PROJECT_NAME: ((OS_PROJECT_NAME))
OS_REGION_NAME: ((OS_REGION_NAME))
OS_USER_DOMAIN_NAME: ((OS_USER_DOMAIN_NAME))
OS_USERNAME: ((OS_USERNAME))
SSH_KEY: ((SSH_KEY))
- task: Build keystone-db image
file: master/ci/tasks/build-image.yml
params:
CI_COMPONENT: keystone-db
OS_AUTH_URL: ((OS_AUTH_URL))
OS_DOMAIN_NAME: ((OS_DOMAIN_NAME))
OS_ENDPOINT_TYPE: ((OS_ENDPOINT_TYPE))
OS_IDENTITY_API_VERSION: ((OS_IDENTITY_API_VERSION))
OS_INTERFACE: ((OS_INTERFACE))
OS_PASSWORD: ((OS_PASSWORD))
OS_PROJECT_ID: ((OS_PROJECT_ID))
OS_PROJECT_NAME: ((OS_PROJECT_NAME))
OS_REGION_NAME: ((OS_REGION_NAME))
OS_USER_DOMAIN_NAME: ((OS_USER_DOMAIN_NAME))
OS_USERNAME: ((OS_USERNAME))
SSH_KEY: ((SSH_KEY))
- task: Build loadbalancer image
file: master/ci/tasks/build-image.yml
params:
Expand Down
7 changes: 4 additions & 3 deletions packer/keystone-db.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,11 +9,12 @@
"floating_ip_pool": "ext-net",
"security_groups": "testinfra-ssh_only",
"ssh_username": "ubuntu",
"ssh_pty": true,
"reuse_ips": true,
"networks": [
"5d58c0ce-0a53-4452-96d7-1713560b4cde"
]
"4d4e1745-7256-4735-ae0e-ccbb5c706787"
],
"ssh_keypair_name": "testinfra-cikey",
"ssh_private_key_file": "/root/.ssh/id_rsa"
}
],
"provisioners": [
Expand Down
8 changes: 5 additions & 3 deletions packer/keystone.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,10 +9,12 @@
"floating_ip_pool": "ext-net",
"security_groups": "testinfra-ssh_only",
"ssh_username": "ubuntu",
"ssh_pty": true,
"reuse_ips": true,
"networks": [
"5d58c0ce-0a53-4452-96d7-1713560b4cde"
]
"4d4e1745-7256-4735-ae0e-ccbb5c706787"
],
"ssh_keypair_name": "testinfra-cikey",
"ssh_private_key_file": "/root/.ssh/id_rsa"
}
],
"provisioners": [
Expand Down
2 changes: 1 addition & 1 deletion packer/loadbalancer.json
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@
"groups": [
"loadbalancer"
],
"ansible_env_vars": [ "ANSIBLE_CONFIG=../ansible.cfg" ],
"ansible_env_vars": [ "ANSIBLE_CONFIG=../ansible.cfg", "ANSIBLE_FORCE_COLOR=true" ],
"extra_arguments": [ "--extra-vars", "@vars.yml" ]
}
]
Expand Down

0 comments on commit 3dd05c2

Please sign in to comment.