Skip to content

Commit

Permalink
Mask master service when using native ha
Browse files Browse the repository at this point in the history
  • Loading branch information
detiber committed Feb 5, 2016
1 parent b25ad7c commit ef46fef
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions roles/openshift_master/tasks/main.yml
Expand Up @@ -285,6 +285,10 @@
master_service_status_changed: "{{ start_result | changed }}"
when: not openshift_master_ha | bool

- name: Mask master service
command: systemctl mask {{ openshift.common.service_type }}-master
when: openshift_master_ha | bool and openshift.master.cluster_method == 'native'

- name: Start and enable master api
service: name={{ openshift.common.service_type }}-master-api enabled=yes state=started
when: openshift_master_ha | bool and openshift.master.cluster_method == 'native'
Expand Down

1 comment on commit ef46fef

@fridim
Copy link

@fridim fridim commented on ef46fef Feb 10, 2016

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This introduces an issue on openshift-entreprise with atomic-host, playbook fails with Access denied:

-bash-4.2# systemctl mask atomic-openshift-master
Failed to execute operation: Access denied

Please sign in to comment.