Skip to content

Commit

Permalink
Merge pull request #51 from arilivigni/master
Browse files Browse the repository at this point in the history
Added option to disable loading of the helper containers
  • Loading branch information
arilivigni authored Jun 14, 2018
2 parents 122441b + 3c1860a commit d5b7e63
Show file tree
Hide file tree
Showing 3 changed files with 27 additions and 1 deletion.
25 changes: 25 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -224,6 +224,31 @@ executed on contra-env-setup.
```

### Example 6: Setup on a local machine :: Start Minishift w/profile mysetup + OS templates + Jenkins 2.0 pipelines

1. Install on a local machine as user cloud-user.
2. Setup pre-reqs (kvm driver and nested virtualization)
3. Start minishift cluster with profile mysetup
4. Setup OpenShift s2i templates from the -e project_repo=https://github.com/arilivigni/ci-pipeline
1. Override the project_repo with another one then the default in global.yml
2. OpenShift project -e openshift_project=ari-ci-pipeline
5. Disable setup of the helper containers ansible-executor and linchpin-executor
6. Setup Jenkins 2.0 pipelines from the project_repo=https://github.com/arilivigni/ci-pipeline
7. Setup sample project templates and pipelines
from the project_repo=https://github.com/CentOS-PaaS-SIG/contra-env-sample-project


```
ansible-playbook -vv -i "localhost," contra-env-setup/playbooks/setup.yml \
-e user=cloud-user -e project_repo=https://github.com/arilivigni/ci-pipeline \
-e openshift_project=ari-ci-pipeline -e setup_helper_containers=false -e setup_pipelines=true \
-e start_minishift=true -e profile=mysetup -K -k
```
_Note: The -K is used to prompt you for your password for sudo (if you require one) <br>
The -k is used to prompt you for your ssh password can hit enter if using -K and they are the same<br>
Instead of -k you could use --private-key=<absolute_path_to_ssh_private_key>_

## Debugging Issues

### Issue #1: Can't push images to the Minishift cluster
Expand Down
1 change: 1 addition & 0 deletions playbooks/group_vars/all/global.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ run_prereqs: true
setup_minishift: true
start_minishift: false
setup_containers: true
setup_helper_containers: true
setup_pipelines: false
setup_sample_project: false
setup_playbook_hooks: false
Expand Down
2 changes: 1 addition & 1 deletion playbooks/roles/os_temps/tasks/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@

# Setup sample_project_repo helper containers
- include_tasks: "setup_containers.yml os_template_path={{ helper_project_dir }}/{{ helper_os_template_dir }}/helper PARAMS={{ SAMPLE_HELPER_PARAMS }}"
when: (setup_containers|bool == true and project_repo != sample_project_repo)
when: (setup_containers|bool == true and project_repo != sample_project_repo and setup_helper_containers|bool == true)

# Check if Jenkins is running
- name: "Check to see if a Jenkins Master instance is running"
Expand Down

0 comments on commit d5b7e63

Please sign in to comment.