[virtual] Split 'pxebr' from 'mcpcontrol' net
[fuel.git] / mcp / scripts / user-data.admin.sh.j2
1 #!/bin/bash
2 ##############################################################################
3 # Copyright (c) 2018 Mirantis Inc., Enea AB and others.
4 # All rights reserved. This program and the accompanying materials
5 # are made available under the terms of the Apache License, Version 2.0
6 # which accompanies this distribution, and is available at
7 # http://www.apache.org/licenses/LICENSE-2.0
8 ##############################################################################
9 rm /etc/salt/minion_id
10 rm -f /etc/salt/pki/minion/minion_master.pub
11 echo "id: $(hostname).{{ conf.CLUSTER_DOMAIN }}" > /etc/salt/minion
12 {#- should be in sync with 'opnfv_infra_config_pxe_address' in 'pharos/config/installers/fuel/pod_config.yml.j2 #}
13 echo "master: {{ conf.idf.net_config.admin.network | ipaddr_index(2) }}" >> /etc/salt/minion
14 service salt-minion restart