Various Delphix Dynamic Data Platform Workshops and associated automation artifacts like Packer templates, Terraform blueprints, Golang, etc
- Go Examples
- Base Templates
- Reporting Issues
- Statement of Support
This repo consists of some standard OS + Database templates configured ready to use with Delphix (located in the packer-templates folder):
There are also some bespoke Packer templates used for specific scenarios:
The Oracle templates requires access to the Oracle binaries placed in an AWS s3 bucket.
The go directory contains examples of interacting with the Delphix Dynamic Data Platform using golang. The examples in that directory are purpose-built to be used in the workshops contained within this repo.
Please see the documentation for the Toolchain Workshop
- Clone this repository
- Navigate into the cloned directory in a terminal
- Copy the .example.env to .environment.env
These templates depend on Packer and Ansible existing in your path. If you are running a Mac, then the easiest way is to install via homebrew. After cloning this repo, install the required Ansible dependencies.
brew install ansible packer git git clone https://github.com/delphix/dx-workshops cd base-templates cp .example.env .example.env ansible-galaxy install -r roles/X_requirements.yml
- Edit the .environment.env file in the root directory of the cloned repo
- AWS_ACCESS_KEY_ID - The AWS_ACCESS_KEY_ID environment variable
- AWS_SECRET_ACCESS_KEY - The AWS_SECRET_ACCESS_KEY environment variable
- AWS_REGION - The region packer will build the temporary infrastructure for the AMI
- ORACLE_BINARIES_ROOT_URL - The URL where the AWS instance can retrieve the Oracle binaries during the packer build (For Oracle templates, only)
- AWS_VPC_ID - The VPC ID from the region that packer will use
- AWS_SUBNET_ID - The subnet ID from the VPC that packer will use
The below values are arbitrary, and only for tagging resources
- AWS_EXPIRATION - The date this AMI is expired, i.e. "2037-07-01" or "never"
- AWS_OWNER - The name of the person who owns the AMI, i.e. "Adam Bowen"
- AWS_PROJECT - The name of the project that the AMI belongs, or came, from
- AWS_COSTCENTER - The name of the cost center, if applicable
- source the .environment.env file
- run packer against the template you want to use:
source .example.env packer build delphix-centOS6.9-oracle22.214.171.124.json
packer build delphix-centOS6.9-oracle126.96.36.199.json cent69-Oracle11204 output will be in this color. ==> cent69-Oracle11204: Force Deregister flag found, skipping prevalidating AMI Name cent69-Oracle11204: Found Image ID: ami-8b44f234 ==> cent69-Oracle11204: Creating temporary keypair: packer_5ad55a87-66df-e148-9439-a7bd06aa04fb ==> cent69-Oracle11204: Creating temporary security group for this instance: packer_5ad55ad1-10d5-7eda-e077-9741925ce7e4 ==> cent69-Oracle11204: Authorizing access to port 22 from 0.0.0.0/0 in the temporary security group... ==> cent69-Oracle11204: Launching a source AWS instance... ==> cent69-Oracle11204: Adding tags to source instance cent69-Oracle11204: Adding tag: "Name": "Packer Builder" cent69-Oracle11204: Instance ID: i-0434f9b2e3a90c0c3 ==> cent69-Oracle11204: Waiting for instance (i-0434f9b2e3a90c0c3) to become ready... ==> cent69-Oracle11204: Waiting for SSH to become available...
source .dafdb-source packer build delphix-toolchain-dafdb-source.json
packer build delphix-toolchain-dafdb-source.json delphix-toolchain-dafdb-source output will be in this color. ==> delphix-toolchain-dafdb-source: Force Deregister flag found, skipping prevalidating AMI Name delphix-toolchain-dafdb-source: Found Image ID: ami-090c2433423df7c1b ==> delphix-toolchain-dafdb-source: Creating temporary keypair: packer_5c24fd34-75a9-e10e-afa8-5784ac498ae2 ==> delphix-toolchain-dafdb-source: Creating temporary security group for this instance: packer_5c24fd36-f5cc-8180-51b5-1bc18409d591 ==> delphix-toolchain-dafdb-source: Authorizing access to port 22 from 0.0.0.0/0 in the temporary security group... ==> delphix-toolchain-dafdb-source: Launching a source AWS instance... ==> delphix-toolchain-dafdb-source: Adding tags to source instance delphix-toolchain-dafdb-source: Adding tag: "dlpx:CostCenter": "305000 - Development Engineering"
Include useful links to references or more advanced guides.
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.
Please note that this project is released with a Contributor Code of Conduct. By participating in this project you agree to abide by its terms.
- 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 <email@example.com>. Make sure to set up Git with user name and email address. Bug fixes should branch from the current stable branch. New feature should be based on the
Issues should be reported in the repo's issue tab.
Statement of Support
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.