Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Added option to disable loading of the helper containers #51

Merged
merged 1 commit into from
Jun 14, 2018
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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