-
Notifications
You must be signed in to change notification settings - Fork 6
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
87a70ad
commit eabb3d9
Showing
60 changed files
with
1,789 additions
and
61 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,6 @@ | ||
source 'https://rubygems.org' | ||
|
||
ruby '~>2.3' | ||
ruby '2.3.1' | ||
|
||
gem 'rhcl', '>= 0.1.0' | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,79 @@ | ||
--- | ||
resources: | ||
- name: cf-ops-automation-docker-image | ||
type: docker-image | ||
source: | ||
repository: orangecloudfoundry/cf-ops-automation | ||
username: ((dockerhub-username)) | ||
password: ((dockerhub-password)) | ||
|
||
- name: cf-ops-automation | ||
type: git | ||
source: | ||
uri: ((cf-ops-automation-git-uri)) | ||
branch: ((cf-ops-automation-git-branch)) | ||
skip_ssl_verification: ((cf-ops-automation-git-insecure)) | ||
|
||
- name: cf-ops-automation-dependencies | ||
type: git | ||
source: | ||
uri: ((cf-ops-automation-git-uri)) | ||
branch: ((cf-ops-automation-git-branch)) | ||
skip_ssl_verification: ((cf-ops-automation-git-insecure)) | ||
paths: [ "Gemfile*", "Dockerfile" ] | ||
|
||
- name: bucc | ||
type: git | ||
source: | ||
uri: https://github.com/starkandwayne/bucc | ||
|
||
jobs: | ||
- name: build-cached-image | ||
plan: | ||
- get: cf-ops-automation-dependencies | ||
trigger: true | ||
- put: cf-ops-automation-docker-image | ||
params: | ||
build: cf-ops-automation-dependencies | ||
build_args: &docker_build_args | ||
CONCOURSE_VERSION: 3.14.1 | ||
CONCOURSE_SHA: aeb91f5d464b71de44decbd34c6696325c14d4f569c76c1171c124e2a773b02e | ||
|
||
- name: bootstrap_coa_env | ||
plan: | ||
- aggregate: | ||
- get: cf-ops-automation-docker-image | ||
passed: [build-cached-image] | ||
trigger: true | ||
- get: cf-ops-automation | ||
trigger: true | ||
- get: bucc | ||
- task: generate_private_params_file | ||
file: cf-ops-automation/concourse/tasks/generate_coa_env_bootstrap_private_prereqs.yml | ||
params: | ||
CONCOURSE_TARGET: ((concourse_target)) | ||
CONCOURSE_URL: ((concourse_url)) | ||
CONCOURSE_USERNAME: ((concourse_username)) | ||
CONCOURSE_PASSWORD: ((concourse_password)) | ||
CONCOURSE_INSECURE: ((concourse_insecure)) | ||
CONCOURSE_CA_CERT: ((concourse_ca_cert)) | ||
BOSH_ENVIRONMENT: ((bosh_environment)) | ||
BOSH_TARGET: ((bosh_target)) | ||
BOSH_CLIENT: ((bosh_client)) | ||
BOSH_CLIENT_SECRET: ((bosh_client_secret)) | ||
BOSH_CA_CERT: ((bosh_ca_cert)) | ||
- task: bootstrap_coa_env | ||
attempts: 3 | ||
image: cf-ops-automation-docker-image | ||
config: | ||
platform: linux | ||
inputs: | ||
- name: cf-ops-automation | ||
- name: private-prereqs | ||
run: | ||
path: ruby | ||
args: | ||
- cf-ops-automation/scripts/bootstrap_coa_env.rb | ||
- cf-ops-automation/ci/bootstrap_coa_env/prereqs.yml | ||
- private-prereqs/bosh-prereqs.yml | ||
- private-prereqs/concourse-prereqs.yml |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,92 @@ | ||
inactive_steps: | ||
- deploy_transiant_infra | ||
- upload_stemcell | ||
# - upload_cloud_config | ||
# - install_git_server | ||
|
||
bucc: | ||
path: bucc/bin/ | ||
cpi: virtualbox | ||
|
||
stemcell: | ||
name: bosh-warden-boshlite-ubuntu-trusty-go_agent | ||
version: "3586.25" | ||
uri: https://s3.amazonaws.com/bosh-core-stemcells/warden/bosh-stemcell-3586.25-warden-boshlite-ubuntu-trusty-go_agent.tgz | ||
sha: b9a44806dc1bb99b0d11d7413742f3619139da0b | ||
|
||
git_server_manifest: | ||
name: git-server | ||
releases: | ||
- name: git-server | ||
version: 3 | ||
instance_groups: | ||
- name: git-server | ||
azs: [z1] | ||
instances: 1 | ||
jobs: | ||
- release: git-server | ||
name: git-server | ||
properties: | ||
repositories: ((repos)) | ||
vm_type: default | ||
stemcell: default | ||
persistent_disk: 10_000 | ||
networks: | ||
- name: default | ||
stemcells: | ||
- alias: default | ||
os: ubuntu-trusty | ||
version: latest | ||
update: | ||
canaries: 1 | ||
max_in_flight: 3 | ||
serial: false | ||
canary_watch_time: 1000-30000 | ||
update_watch_time: 1000-30000 | ||
|
||
cloud_config: | ||
azs: | ||
- name: z1 | ||
stemcells: | ||
- alias: "default" | ||
os: "ubuntu-trusty" | ||
version: "3586.25" | ||
vm_types: | ||
- name: default | ||
cloud_properties: { name: random } | ||
networks: | ||
- name: default | ||
type: manual | ||
subnets: | ||
- range: 10.244.10.0/24 | ||
gateway: 10.244.10.1 | ||
dns: ['10.244.5.16', '10.244.6.16'] | ||
reserved: ['10.244.10.2', '10.244.10.3'] | ||
static: ['10.244.10.4 - 10.244.10.29'] | ||
az: z1 | ||
compilation: | ||
network: default | ||
reuse_compilation_vms: true | ||
workers: 10 | ||
az: z1 | ||
cloud_properties: | ||
name: random | ||
|
||
pipeline_credentials: | ||
slack-webhook: https://example.slack.com/webhook | ||
slack-channel: channel | ||
secrets-branch: master | ||
paas-templates-branch: master | ||
cf-ops-automation-uri: http://github.com/orange-cloudfoundry/cf-ops-automation/ | ||
cf-ops-automation-branch: master | ||
cf-ops-automation-tag-filter: "" | ||
iaas-type: virtualbox | ||
s3-stemcell-access-key-id: "" | ||
s3-stemcell-region-name: us-east-1 | ||
s3-stemcell-secret-key: "" | ||
s3-stemcell-bucket: bosh-core-stemcells | ||
stemcell-name-prefix: warden | ||
stemcell-main-name: warden-boshlite-ubuntu-trusty-go_agent | ||
stemcell-version: "3586.25" | ||
s3-stemcell-endpoint: https://s3.amazonaws.com | ||
s3-stemcell-skip-ssl-verification: false |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
39 changes: 39 additions & 0 deletions
39
concourse/tasks/bootstrap_coa_env/generate_private_prereqs.rb
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,39 @@ | ||
#!/usr/bin/env ruby | ||
|
||
require 'yaml' | ||
require 'fileutils' | ||
|
||
FileUtils.mkdir_p "private-prereqs" | ||
|
||
puts "current env:", ENV.inspect | ||
|
||
concourse_prereqs_path = "private-prereqs/concourse-prereqs.yml" | ||
puts "Creating Concourse credentials file at '#{concourse_prereqs_path}'" | ||
|
||
concourse_prereqs = { | ||
"concourse" => { | ||
"concourse_target" => ENV["CONCOURSE_TARGET"], | ||
"concourse_url" => ENV["CONCOURSE_URL"], | ||
"concourse_username" => ENV["CONCOURSE_USERNAME"], | ||
"concourse_password" => ENV["CONCOURSE_PASSWORD"], | ||
"concourse_insecure" => ENV["CONCOURSE_INSECURE"], | ||
"concourse_ca_cert" => ENV["CONCOURSE_CA_CERT"] | ||
} | ||
} | ||
|
||
File.write(concourse_prereqs_path, concourse_prereqs.to_yaml) | ||
|
||
bosh_prereqs_path = "private-prereqs/bosh-prereqs.yml" | ||
puts "Creating BOSH credentials file at '#{bosh_prereqs_path}'" | ||
|
||
bosh_prereqs = { | ||
"bosh" => { | ||
"bosh_environment" => ENV["BOSH_ENVIRONMENT"], | ||
"bosh_target" => ENV["BOSH_TARGET"], | ||
"bosh_client" => ENV["BOSH_CLIENT"], | ||
"bosh_client_secret" => ENV["BOSH_CLIENT_SECRET"], | ||
"bosh_ca_cert" => ENV["BOSH_CA_CERT"] | ||
} | ||
} | ||
|
||
File.write(bosh_prereqs_path, bosh_prereqs.to_yaml) |
27 changes: 27 additions & 0 deletions
27
concourse/tasks/generate_coa_env_bootstrap_private_prereqs.yml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,27 @@ | ||
--- | ||
# | ||
# Copyright (C) 2015-2017 Orange | ||
# Licensed under the Apache License, Version 2.0 (the "License"); | ||
# you may not use this file except in compliance with the License. | ||
# You may obtain a copy of the License at | ||
# http://www.apache.org/licenses/LICENSE-2.0 | ||
# Unless required by applicable law or agreed to in writing, software | ||
# distributed under the License is distributed on an "AS IS" BASIS, | ||
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. | ||
# See the License for the specific language governing permissions and | ||
# limitations under the License. | ||
# | ||
|
||
platform: linux | ||
image_resource: | ||
type: docker-image | ||
source: | ||
repository: orangecloudfoundry/cf-ops-automation | ||
|
||
inputs: | ||
- name: cf-ops-automation | ||
outputs: | ||
- name: private-prereqs | ||
|
||
run: | ||
path: cf-ops-automation/concourse/tasks/bootstrap_coa_env/generate_private_prereqs.rb |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
12 changes: 7 additions & 5 deletions
12
docs/reference_dataset/config_repository/hello-world-root-depls/ci-deployment-overview.yml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,17 +1,19 @@ | ||
--- | ||
ci-deployment: | ||
hello-world-root-depls: | ||
target_name: TO_BE_DEFINED | ||
target_name: fe-int-micro-for-micro-depls | ||
target_name: concourse-target | ||
terraform_config: | ||
state_file_path: hello-world-root-depls/terraform-config | ||
pipelines: | ||
bosh-sample-generated: | ||
hello-world-root-depls-generated: | ||
vars_files: | ||
- hello-world-root-depls/hello-world-root-depls-versions.yml | ||
- shared/concourse-credentials.yml | ||
bosh-sample-cf-apps-generated: | ||
hello-world-root-depls-init-generated: | ||
vars_files: | ||
- hello-world-root-depls/hello-world-root-depls-versions.yml | ||
- shared/concourse-credentials.yml | ||
hello-world-root-depls-cf-apps-generated: | ||
vars_files: | ||
- hello-world-root-depls/hello-world-root-depls-versions.yml | ||
- shared/concourse-credentials.yml | ||
|
Oops, something went wrong.