Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Support persistent custom Admiral configurations #1880

Open
wants to merge 2 commits into
base: master
Choose a base branch
from

Conversation

dbarkelew
Copy link
Contributor

@dbarkelew dbarkelew commented Jul 12, 2018

Changing the custom.conf from being overwritten each time the configure_admiral.sh script runs. Sets custom.conf to be an empty text file by default for users to modify as needed to add custom configurations.

https://ikb.vmware.com/s/article/52332 currently has internal workaround for applying the changes manually.

VIC Appliance Checklist:

  • Up to date with master branch
  • Added tests
  • Considered impact to upgrade
  • Tests passing
  • Updated documentation
  • Impact assessment checklist

If this is a feature or change to existing functionality, consider areas of impact with the Impact
Assessment Checklist

Related #2391

Updating fork to 1.3.1
Appending the registry integration URL to the config.properties instead of overwriting custom.config
@@ -82,6 +79,9 @@ cp $data_dir/custom.conf $config_dir/config.properties
cp $admiral_psc_dir/psc-config.keystore $config_dir
cp $admiral_psc_dir/psc-config.properties $config_dir

# Configure the integration URL
echo "harbor.tab.url=https://${HOSTNAME}:${REGISTRY_PORT}" >> $config_dir/config.properties
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It seems like this will append a new line each time the service is started. When testing the change, did you try restarting the OVA a few times to see what happens?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think "$config_dir/config.properties" is newly created each time from "cp $data_dir/custom.conf $config_dir/config.properties". I thought I tested a few reboots but I will have to double check again.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@zjs On VIC 1.4.3 I rebooted a few times and didn't see any duplicate entries.

Copy link
Contributor

@DanielXiao DanielXiao Feb 12, 2019

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Can you rebase this patch and move below proxy setting after this line?
if [ -n "${NETWORK_HTTPS_PROXY}" ]; then
echo "registry.proxy=${NETWORK_HTTPS_PROXY}" >> $data_dir/custom.conf
elif [ -n "${NETWORK_HTTP_PROXY}" ]; then
echo "registry.proxy=${NETWORK_HTTP_PROXY}" >> $data_dir/custom.conf
fi
if [ -n "${NETWORK_NO_PROXY_LIST}" ]; then
echo "registry.no.proxy.list=${NETWORK_NO_PROXY_LIST}" >> $data_dir/custom.conf
fi

@DanielXiao DanielXiao self-assigned this Mar 18, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants