Ansible role to manage Nodepool
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

main.yaml 3.7KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697
  1. # Copyright 2015 Red Hat, Inc.
  2. #
  3. # Licensed under the Apache License, Version 2.0 (the "License");
  4. # you may not use this file except in compliance with the License.
  5. # You may obtain a copy of the License at
  6. #
  7. # http://www.apache.org/licenses/LICENSE-2.0
  8. #
  9. # Unless required by applicable law or agreed to in writing, software
  10. # distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
  11. # WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
  12. # License for the specific language governing permissions and limitations
  13. # under the License.
  14. ---
  15. # tasks/main.yaml
  16. nodepool_task_manager:
  17. - pre
  18. - install
  19. - config
  20. - service
  21. # tasks/config.yaml
  22. nodepool_user_name: nodepool
  23. nodepool_user_group: nodepool
  24. nodepool_user_home: /var/lib/nodepool
  25. nodepool_user_home_mode: 0755
  26. # nodepool_user_shell:
  27. nodepool_file_nodepool_yaml_dest: /etc/nodepool/nodepool.yaml
  28. nodepool_file_nodepool_yaml_group: "{{ nodepool_user_group }}"
  29. nodepool_file_nodepool_yaml_mode: 0644
  30. nodepool_file_nodepool_yaml_owner: "{{ nodepool_user_name }}"
  31. nodepool_file_nodepool_yaml_src: etc/nodepool/nodepool.yaml
  32. nodepool_file_secure_conf_dest: /etc/nodepool/secure.conf
  33. nodepool_file_secure_conf_group: "{{ nodepool_user_group }}"
  34. nodepool_file_secure_conf_mode: 0600
  35. nodepool_file_secure_conf_owner: "{{ nodepool_user_name }}"
  36. nodepool_file_secure_conf_src: etc/nodepool/secure.conf
  37. nodepool_file_builder_logging_conf_dest: /etc/nodepool/builder-logging.conf
  38. nodepool_file_builder_logging_conf_group: "{{ nodepool_user_group }}"
  39. nodepool_file_builder_logging_conf_mode: 0644
  40. nodepool_file_builder_logging_conf_owner: "{{ nodepool_user_name }}"
  41. nodepool_file_builder_logging_conf_src: etc/nodepool/builder-logging.conf
  42. nodepool_file_launcher_logging_conf_dest: /etc/nodepool/launcher-logging.conf
  43. nodepool_file_launcher_logging_conf_group: "{{ nodepool_user_group }}"
  44. nodepool_file_launcher_logging_conf_mode: 0644
  45. nodepool_file_launcher_logging_conf_owner: "{{ nodepool_user_name }}"
  46. nodepool_file_launcher_logging_conf_src: etc/nodepool/launcher-logging.conf
  47. # tasks/install.yaml
  48. nodepool_git_dest: "{{ ansible_user_dir }}/src/git.openstack.org/openstack-infra/nodepool"
  49. nodepool_git_uri: https://git.openstack.org/openstack-infra/nodepool
  50. nodepool_git_version: master
  51. # nodepool_git_refspec:
  52. # nodepool_git_update:
  53. nodepool_install_method: pip
  54. nodepool_pip_name: nodepool
  55. # nodepool_pip_executable:
  56. # nodepool_pip_editable:
  57. # nodepool_pip_extra_args:
  58. # nodepool_pip_version:
  59. # nodepool_pip_virtualenv_python:
  60. # nodepool_pip_virtualenv:
  61. # tasks/service.yaml
  62. nodepool_file_nodepool_builder_service_manage: true
  63. nodepool_file_nodepool_builder_service_group: root
  64. nodepool_file_nodepool_builder_service_owner: root
  65. nodepool_file_nodepool_builder_service_config_manage: true
  66. nodepool_file_nodepool_builder_service_config_group: root
  67. nodepool_file_nodepool_builder_service_config_owner: root
  68. nodepool_file_nodepool_launcher_service_manage: true
  69. nodepool_file_nodepool_launcher_service_group: root
  70. nodepool_file_nodepool_launcher_service_owner: root
  71. nodepool_file_nodepool_launcher_service_config_manage: true
  72. nodepool_file_nodepool_launcher_service_config_group: root
  73. nodepool_file_nodepool_launcher_service_config_owner: root
  74. nodepool_service_nodepool_builder_daemon_reload: true
  75. nodepool_service_nodepool_builder_enabled: true
  76. nodepool_service_nodepool_builder_manage: true
  77. nodepool_service_nodepool_builder_name: nodepool-builder
  78. nodepool_service_nodepool_builder_state: started
  79. nodepool_service_nodepool_launcher_daemon_reload: true
  80. nodepool_service_nodepool_launcher_enabled: true
  81. nodepool_service_nodepool_launcher_manage: true
  82. nodepool_service_nodepool_launcher_name: nodepool-launcher
  83. nodepool_service_nodepool_launcher_state: started