Merge "Make path to ironic-rootwrap dynamic"

This commit is contained in:
Jenkins 2017-01-31 14:24:01 +00:00 committed by Gerrit Code Review
commit fa257d6e7b
4 changed files with 4 additions and 1 deletions

View File

@ -6,6 +6,7 @@ syslinux_tftp_dir: /usr/lib/syslinux/
ipxe_dir: /usr/lib/ipxe/
ipxe_full_binary: ipxe.pxe
sgabios_dir: /usr/share/qemu/
ironic_rootwrap_dir: /usr/local/bin/
nginx_user: www-data
virt_group: libvirtd
mysql_service_name: mysql

View File

@ -6,6 +6,7 @@ syslinux_tftp_dir: /var/lib/tftpboot
ipxe_dir: /usr/share/ipxe/
ipxe_full_binary: ipxe.lkrn
sgabios_dir: /usr/share/sgabios/
ironic_rootwrap_dir: /usr/bin/
nginx_user: nginx
virt_group: libvirt
mysql_service_name: mariadb

View File

@ -11,6 +11,7 @@ download_ipxe: true
ipxe_dir: /usr/local/share/ipxe
ipxe_full_binary: ipxe.lkrn
sgabios_dir: /usr/share/sgabios/
ironic_rootwrap_dir: /usr/bin/
nginx_user: nginx
virt_group: libvirt
mysql_service_name: mysql

View File

@ -28,5 +28,5 @@
lineinfile:
dest: /etc/sudoers
regexp: '^ironic(.*)/etc/ironic/rootwrap.conf(.*)'
line: "ironic ALL = (root) NOPASSWD: /usr/local/bin/ironic-rootwrap /etc/ironic/rootwrap.conf *"
line: "ironic ALL = (root) NOPASSWD: {{ ironic_rootwrap_dir }}/ironic-rootwrap /etc/ironic/rootwrap.conf *"
when: enable_pxe_drivers | bool == true