This script/binary will wait for an engine to be ready, and then add the host to the engine. Intended to be embedded in images so they can self-enroll on boot. Just create a job that executes this upon boot. (I user an @reboot conjob as the program gracefully exits if the environment already exists).
Currently only works for UnixHost with passwordless SSH.
DDPName string `short:"e" long:"ddp_hostname" env:"DELPHIX_DDP_HOSTNAME" description:"The hostname or IP address of the Delphix Dynamic Data Platform" required:"true"`
UserName string `short:"u" long:"username" env:"DELPHIX_USER" description:"The username used to authenticate to the Delphix Engine" required:"true"`
Password string `short:"p" long:"password" env:"DELPHIX_PASS" description:"The password used to authenticate to the Delphix Engine" required:"true"`
Debug []bool `short:"v" long:"debug" env:"DELPHIX_DEBUG" description:"Turn on debugging. -vvv for the most verbose debugging"`
SkipValidate bool `long:"skip-validate" env:"DELPHIX_SKIP_VALIDATE" description:"Don't validate TLS certificate of Delphix Engine"`
ConfigFile func(s string) error `short:"c" long:"config" description:"Optional INI config file to pass in for the variables" no-ini:"true"`
EnvironmentName string `long:"environment" env:"DELPHIX_ENV" description:"optional: Specify the name of the environment in Delphix. Defaults to hostname"`
KeyFile flags.Filename `long:"filename" description:"optional: The file to append the Delphix DDP public key. Creates file if it doesn't exist"`
ToolKitPath string `long:"toolkit_path" env:"TOOLKIT_PATH" description:"The path for the toolkit that resides on the host" required:"true"`
EnvironmentUser string `long:"environment_user" env:"ENVIRONMENT_USER" description:"The OS username to use for the environment" required:"true"`
EnvironmentAddress string `long:"environment_address" env:"ENVIRONMENT_ADDRESS" description:"optional: The address associated with the host."`
ddp_hostname = delphixengine
username = delphix_admin
password = landshark
skip-validate = 1
filename = /var/lib/pgsql/.ssh/authorized_keys
toolkit_path = /var/lib/pgsql/toolkit
environment_user = postgres
- Fork the project.
- Make your bug fix or new feature.
- Add tests for your code.
- Send a pull request.
Contributions must be signed as User Name <user@email.com>
. Make sure to set up Git with user name and email address. Bug fixes should branch from the current stable branch. New features should be based on the master
branch.
This project operates under the Delphix Code of Conduct. By participating in this project you agree to abide by its terms.
All contributors are required to sign the Delphix Contributor agreement prior to contributing code to an open source repository. This process is handled automatically by cla-assistant. Simply open a pull request and a bot will automatically check to see if you have signed the latest agreement. If not, you will be prompted to do so as part of the pull request process.
Issues should be reported here.
This software is provided as-is, without warranty of any kind or commercial support through Delphix. See the associated license for additional details. Questions, issues, feature requests, and contributions should be directed to the community as outlined in the Delphix Community Guidelines.
This is code is licensed under the Apache License 2.0. Full license is available here.