summaryrefslogtreecommitdiff
AgeCommit message (Collapse)Author
2017-07-27do i even do work without lintRyan Cook
2017-07-27edu suggestionsRyan Cook
2017-07-19setting the actual valuesRyan Cook
2017-07-19possibly caused logs to not deployRyan Cook
2017-07-19missing commaRyan Cook
2017-07-19addition of loggingRyan Cook
2017-07-19During provisioning, make unnecessary packages optional under a switch (#561)Tlacenka
* openshift-prep: bash-completion and vim-enhanced packages are now optional under install_debug_packages switch * openshift-prep: new line removal
2017-07-19Merge pull request #563 from tomassedovic/openshift-ansible-sudoBogdan Dobrelya
Set ansible_become for the OSEv3 group
2017-07-19Set ansible_become for the OSEv3 groupTomas Sedovic
Because openshift-ansible requires root on the cluster nodes, but it doesn't explicitly set it in the playbooks (like we do), let's set it in our inventory instead of requiring to pass `--become` to `ansible-playbook`. That will simplify the installation steps as well as let us include the provisioning and openshift-ansible playbooks in a single playbook.
2017-07-18GCP: Refactor data disk(s) creation and setup to instance template v2 (#537)Peter Schiffer
* Add roles to create and delete empty image (workaround) GCE API does not allow you to specify empty disks in instance templates. This is a workaround to that limitation. The version of cloudilb currently available as an RPM on my build system also doesn’t allow me to specify a family for this image. The impact of this is limited because GCE API has a bug where as if we specify the image using the family it doesn’t work as expected. * Refactor disk creation to instance templates There is currently a bug in GCE API that when you specify a non-boot disk sourceImage as a family it will instead use the sourceImage from the boot disk. To workaround this we don’t use a family to specify this sourceImage even though it is more appropriate to do so. * Instance group related pauses We introduce two pauses: 1) Immediately after creating the “core” deployment. This is to give time to the instance groups to become “complete”. Ideally we would poll the API instead of waiting a fixed amount of time but this is better than nothing. 2) The second waits for the newly spawned instances to be reachable. Ideally we would use wait_for_connection to achieve this but the following bug keeps this from working for instances behind a bastion host: https://github.com/ansible/ansible/issues/23774 * Use cloud-init to configure attached data disks * Cosmetics cleanup, removed some values which are default.. Also let's forget about empty image family, no need to version this image. * Query instance group manager to see if instances are ready * Empty image archive is very small, no need for composite upload * Use more robust check if instances are ready for ssh
2017-07-17Slightly enhanced deployment manager role (#556)Peter Schiffer
* Check if deployment exists in failed state and delete it before continuing, if it does. Resolves: #438 * Differentiate gold image deployment when deploying origin So there can be both gold images present in one gcp project.
2017-07-17Add a role to generate a static inventory (#540)Bogdan Dobrelya
* Add the static-inventory role that configures the inventory/hosts file by the given path, or creates it for you. Signed-off-by: Bogdan Dobrelya <bdobreli@redhat.com>
2017-07-17Retry tasks in the subscription manager role (#552)Tlacenka
* subscription manager: added 10 retries after 1 second delay * subscription manager: added untils * sub manager: typo
2017-07-17Set docker registry to 3 (#555)Glenn S West
2017-07-17Merge pull request #536 from e-minguez/azure_logging_metrics_postGlenn S West
Azure logging metrics and logging deployment in post installation step
2017-07-14RHV provider BYO code (#548)Chandler Wilkerson
* Add ssh keys to ovirt VM template * Adjusted role path * Adding .example to list of ignored inventory files * Fixed ssh-key placement * instance group and install code for OCP * Added info about certs and qcow to README * Not a Vsphere * Added load balancer to instance groups * Added check for installing local satellite katello rpm * Reorganized variables * Formatting * Playbook to output DNS entries in nsupdate format * Hosts commented out for publishing * Added variables file for user edit * Moved variables around for centralized management by user * Updated documentation * Formatting * Renaming to match style of repo * Changing underscores to dashes for style * Updated naming convention to match rest of repo * Updated naming convention to match rest of repo * Fixed link * Resolving Lint issues
2017-07-14Set up NetworkManager automatically (#542)Tomas Sedovic
* Set up NetworkManager automatically This removes the extra step of running the `openshift-ansible/playbooks/byo/openshift-node/network_manager.yml` before installing openshift. In addition, the playbook relies on a host group that the provisioning doesn't provide (oo_all_hosts). Instead, we set up NetworkManager on CentOS nodes automatically. And we restart it on RHEL (which is necessary for the nodes to pick up the new DNS we configured the subnet with). This makes the provisioning easier and more resilient. * Apply the node-network-manager role to every node It makes the code simpler and more consistent across distros.
2017-07-14Merge pull request #546 from tomassedovic/jinja-versionBogdan Dobrelya
Replace greaterthan and equalto in openstack-stack
2017-07-13add missing ansible rpm to sample command (#545)Ilkka Tengvall
2017-07-13Move OCP variables to one place (#547)Peter Schiffer
* Refactor gcloud.sh script for DRY Introduce run_playbook() fn so the rest of the script can be simplified. * Move OCP variables to one place
2017-07-13Replace greaterthan and equalto in openstack-stackTomas Sedovic
These two Jinja filters were added in 2.8 which is notably not packaged in CentOS and RHEL. This removes them in favour of the `==` and `>` operators which are available in Jinja 2.7.
2017-07-13Premium storage for logging/metricsEduardo Minguez Perez
2017-07-13Container name should be vhdsEduardo Minguez Perez
2017-07-12needed to expand name (#543)Ryan Cook
2017-07-12Switch the sample inventory to CentOS (#541)Tomas Sedovic
* Switch the sample inventory to CentOS This changes the image name and deployment types to use centos instead of rhel and sets `rhsm_register` to false. With these changes, the inventory should be immediately deployable using the default values (assuming the image, network and flavor names match). Ideally, the upstream CI will just end up using this inventory with little to no changes, too at some point. * Specify the origin openshift_release
2017-07-12Add defaults values for some openstack vars (#539)Tomas Sedovic
* Add defaults values for some openstack vars Ansible shows errors when the `rhsm_register` and `openstack_flat_secgrp` values are not present in the inventory even though they have sensible default values. This makes them both default to false when they're not specified. * Comment out the flat security group option in inv It's no longer required to be there so let's comment it out.
2017-07-12Install DNS roles from casl-infra with galaxy (#529)Bogdan Dobrelya
Signed-off-by: Bogdan Dobrelya <bdobreli@redhat.com>
2017-07-11Back to openshift/master repoEduardo Minguez Perez
2017-07-11Added OCP aggregated loggingEduardo Minguez Perez
* App logging enabled by default * Ops logging disabled by default * Elasticsearch HA by default * Fluentd on all nodes/masters * All the rest of the components deployed on infra nodes * Dynamic storage
2017-07-10Playbook prerequisites.yml checks that prerequisites are met before ↵Tlacenka
provisioning (#518) * prerequisites.yml: check prerequisites on localhost needed for provisioning provision.yml: includes prerequisites.yml * prerequisites: indentation fixed * prerequisites.yml: used ansible_version variable, openstack modules for ansible * prerequisites.yml: os_keypair is not suitable for this purpose * prerequisites.yml: openstack keypair command exchanged for shade - there is no Ansible module for this now - os_keypair is not suitable for this purpose - python-openstackclient dependency is not desirable
2017-07-07Merge pull request #534 from dav1x/heketi-service-startingDavis Phillips
setting enabled=yes for heketi
2017-07-07mendDavis Phillips
2017-07-07setting enabled=yes for heketiDavis Phillips
2017-07-05Merge pull request #531 from dav1x/missing-playbooks-crsDavis Phillips
adding some fixes for annette issues
2017-07-05enable heketiDavis Phillips
2017-07-05adding some fixes for annette issuesDavis Phillips
2017-07-04GCP: Allow for custom VPC subnet II (#530)Peter Schiffer
* GCP: Allow for custom VPC subnet * Couple of cosmetic fixes to the PR #500 * Better description of config value
2017-06-30Merge pull request #501 from bogdando/github_templatesTomas Sedovic
Add ISSUE/PR github templates
2017-06-30Added optional metrics to AzureEduardo Minguez Perez
2017-06-30Merge pull request #510 from e-minguez/azure-swapGlenn S West
Disable swap on nodes
2017-06-30Merge pull request #520 from e-minguez/enable_dnsmasq_azureGlenn S West
Enable dnsmasq or it fails resolving k8s svc
2017-06-30Merge pull request #525 from bogdando/manage_packagesTomas Sedovic
Manage packages to install/update for openstack provider
2017-06-30Merge pull request #522 from bogdando/native_dns_firstTomas Sedovic
Persist DNS configuration for nodes for openstack provider
2017-06-30Persist DNS configuration for nodes for openstack providerBogdan Dobrelya
* Firstly, provision a Heat stack with given public resolvers. * After the DNS node configured as an authoritative server, switch the Heat stack's Neutron subnet to that resolver (private_dns_server) the way it to become the first entry pushed into the hosts /etc/resolv.conf. It will be serving the cluster domain requests for OpenShift nodes and workloads. * Drop post-provision /etc/reslov.conf nameserver hacks as not needed anymore. * Fix dns floating IPs output and add the priv IPs output as well. * Update docs, clarify localhost vs servers requirements, add required Network Manager setup step. * Use post-provision task names instead of comments. Signed-off-by: Bogdan Dobrelya <bdobreli@redhat.com>
2017-06-30Manage packages to install/update for openstack providerBogdan Dobrelya
Allow required packages and yum update all steps to be optionally disabled. Signed-off-by: Bogdan Dobrelya <bdobreli@redhat.com>
2017-06-30Merge pull request #523 from tomassedovic/wait_for_connectionBogdan Dobrelya
Use wait_for_connection for the Heat nodes
2017-06-30By default htpasswd is overwritten by reinstalling (#519)Eduardo Mínguez
https://github.com/openshift/openshift-ansible/blob/master/roles/openshift_master_facts/tasks/main.yml#L73
2017-06-29Fix yaml indentationTomas Sedovic
2017-06-29Use wait_for_connection for the Heat nodesTomas Sedovic
The `wait_for_connection` module is more reliable as it uses Ansible's `ping` to verify the nodes are really accessible. Using `wait_for` and checking that port 22 is open runs into the possibility of SSH being up but the public keys or users not being set up yet (as that's done with cloud-init). In addition, we were gathering facts before running the wait_for task which rendered it useless.
2017-06-29Variable not used and dnsmasq installation by OCPEduardo Minguez Perez