diff --git a/README.md b/README.md index 53687c23..299fc299 100644 --- a/README.md +++ b/README.md @@ -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)
+ The -k is used to prompt you for your ssh password can hit enter if using -K and they are the same
+ Instead of -k you could use --private-key=_ + ## Debugging Issues ### Issue #1: Can't push images to the Minishift cluster diff --git a/playbooks/group_vars/all/global.yml b/playbooks/group_vars/all/global.yml index 5201f34c..d6124bb3 100644 --- a/playbooks/group_vars/all/global.yml +++ b/playbooks/group_vars/all/global.yml @@ -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 diff --git a/playbooks/roles/os_temps/tasks/main.yml b/playbooks/roles/os_temps/tasks/main.yml index 4af9e927..14eb5bb6 100644 --- a/playbooks/roles/os_temps/tasks/main.yml +++ b/playbooks/roles/os_temps/tasks/main.yml @@ -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"