...
Code Block |
---|
user_data_format: RAW user_data: str_replace: template: | #cloud-config users: - name: admin ssh-authorized-keys: - $adminSshKey "adminSshKey" lock_passwd: false - name: linuxadmin ssh-authorized-keys: - "linuxAdminSshKey" lock_passwd: false runcmd: - usermod -p '"adminPassword"' admin - usermod -p '"linuxAdminPassword"' linuxadmin write_files: - content: | { "CERole" : "CERole", "CEName" : "CEName", "SystemName" : "SystemName", "SbcPersonalityType" : "SbcPersonalityType", "SbcMgmtMode" : "Mgmt_mode", "EmsUsername" : "EmsUsername", "EmsPassword" : "EmsPassword", "EmsIP" : "EmsIP", "EmsDownloadConfig" : "EmsDownloadConfig", "TemplateName" : "TemplateFileName", "TemplateVersion" : "Template_Version", "EmsPrivateNodeParameters" : { "cluster_id": "","vnfc_id":""} } path: /opt/sonus/conf/userData.json bootcmd: - /opt/sonus/bin/mountVolume.sh -v "cinderVolumeIdForLogs" - name: linuxadmin ssh-authorized-keys: - $linuxAdminSshKey lock_passwd: false runcmd: - usermod -p '$adminPassword' admin - usermod -p '$linuxAdminPassword' linuxadmin write_files: - content: | { "CERole" : "$ce_role", "CEName" : "$ce_name", "SystemName" : "$system_name", "SbcPersonalityType" : "$personality", "SbcMgmtMode" : "$mgmt_mode", "EmsUsername" : "$ems_user_name", "EmsPassword" : "$ems_password", "EmsIP" : [ "$ems_ip_1", "$ems_ip_2" ], "EmsDownloadConfig" : "$downloadConfig", "TemplateName" : "heatRgActiveTemplate.yaml", "TemplateVersion" : "TEMPLATE_VERSION_UNKNOWN", "EmsPrivateNodeParameters": { "cluster_id": "$cluster_id" , "vnfc_id": "$vnfc_id" } } path: /opt/sonus/conf/userData.json #bootcmd: #- /opt/sonus/bin/mountVolume.sh -v "$cinderVolumeIdForLogs" params: $ce_role: { get_param: sbc_ceRole } $ce_name: { get_param: sbc_ceName } $system_name: { get_param: sbc_system_name } $personality: { get_param: personality } $mgmt_mode: { get_param: mgmt_mode } $ems_user_name: { get_param: ems_user_name } $ems_password: { get_param: ems_password } $ems_ip_1: { get_param: ems_ip_1 } $ems_ip_2: { get_param: ems_ip_2 } $cluster_id: { get_param: cluster_id } $downloadConfig: { get_param: download_config } $vnfc_id: { list_join: ['-', [ { get_param: "OS::stack_name" }, { get_param: cluster_id }, '1']] } $adminSshKey: { get_param: adminSshKey } $linuxAdminSshKey: { get_param: linuxAdminSshKey } $adminPassword: { get_param: adminPassword } $linuxAdminPassword: { get_param: linuxAdminPassword } #$cinderVolumeIdForLogs: { get_param: cinder_volume_id_for_logs } |
Info |
---|
The Userdata JSON is present under the write_file directory |
...
Code Block |
---|
set addressContext default ipInterfaceGroup LIG1 ipInterface LIG1_V4 ipVarV4 IF2.IPV4 prefixVarV4 IF2.PrefixV4 vlanTagVar IF5.VlanId portName pkt0 state enabled mode inService set addressContext default ipInterfaceGroup LIG2 ipInterface LIG2_V4 ipVarV4 IF3.IPV4 prefixVarV4 IF3.PrefixV4 ipPublicVarV4 IF3.FIPV4 portName pkt1 state enabled mode inService set addressContext default zone ZONE_AS sipSigPort 3 ipInterfaceGroup LIG2 ipVarV4 IF3.IPV4 ipPublicVarV4 IF3.FIPV4 state enabled set system dsbc dsbcSigPort ipInterfaceGroup SVzIMSMediaIPv6SRRIMSMediaIPv6 ipVarV6 PKT0_V02_ALT_IP_01.IP mode inService state enabled commit |
...