Created
March 13, 2015 18:54
-
-
Save ajayhn/5894c52222c303858524 to your computer and use it in GitHub Desktop.
centos7-provisioning-for-non-openstack
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[centos@ip-172-31-34-194 ~]$ cat controller-provisioning | |
sed -i 's/Xss180k/Xss280k/' /etc/cassandra/conf/cassandra-env.sh | |
echo "api-server:api-server" >> /etc/ifmap-server/basicauthusers.properties | |
echo "schema-transformer:schema-transformer" >> /etc/ifmap-server/basicauthusers.properties | |
echo "svc-monitor:svc-monitor" >> /etc/ifmap-server/basicauthusers.properties | |
echo "control-user:control-user-passwd" >> /etc/ifmap-server/basicauthusers.properties | |
sed 's/911%(process_num)01d/5998/' /etc/contrail/supervisord_config_files/contrail-discovery.ini | |
sed -i 's/91%(process_num)02d/8082/' /etc/contrail/supervisord_config_files/contrail-api.ini | |
[centos@ip-172-31-34-194 ~]$ cat compute-provisioning | |
sed 's/__DEVICE__/eth1/' /etc/contrail/agent_param.tmpl > /etc/contrail/agent_param | |
cat > /etc/sysconfig/network-scripts/ifcfg-vhost0 << EOF | |
#Contrail vhost0 | |
DEVICE=vhost0 | |
ONBOOT=yes | |
BOOTPROTO=none | |
IPV6INIT=no | |
USERCTL=yes | |
IPADDR=10.84.24.10 | |
NETMASK=255.255.255.0 | |
NM_CONTROLLED=no | |
#NETWORK MANAGER BUG WORKAROUND | |
SUBCHANNELS=1,2,3 | |
GATEWAY=10.84.24.254 | |
DNS1=10.84.9.17 | |
DNS2=10.84.5.100 | |
DNS3=172.21.200.60 | |
DNS4=172.29.131.60 | |
DNS5=8.8.8.8 | |
DOMAIN="contrail.juniper.net. juniper.net. jnpr.net. contrail.juniper.net" | |
EOF | |
sed -i 's/# type=kvm/type=kvm/' /etc/contrail/contrail-vrouter-agent.conf | |
echo "ab:cd:61:da:fd:05" > /etc/contrail/default_pmac | |
sed -i 's/# name=vhost0/name=vhost0/' /etc/contrail/contrail-vrouter-agent.conf | |
sed -i 's/# physical_interface=vnet0/physical_interface=eth1/' /etc/contrail/contrail-vrouter-agent.conf | |
reboot |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment