gcs_proxy
Role Description
Role to install Google Cloud Proxy on Google Cloud Compute instance. See Google's documentation on connecting to Cloud SQL from Compute Engine.
Starting And Stopping The service
systemctl start gcsql_proxy
systemctl stop gcsql_proxy
Requirements
If the target server has SELinux enabled, install the SELinux packages from OS. We recommend using the role CentOS Base.
Role Variables
Variable | Default Value | Description | Required |
---|---|---|---|
gcs_proxy_instances | YOUR INSTANCE CONNECTION NAME | Google Cloud SQL instance name | Yes |
gcs_proxy_credential_file | Path to key file on the remtote server | No | |
gcsql_proxy_configure_selinux | false | Ensure Google Cloud SQL Proxy runs when SELinux is enabled | No |
Dependencies
None. We recommend using the role CentOS Base
Example Playbook
- hosts: servers
vars:
- gcs_proxy_instances: <YOUR INSTANCE CONNECTION NAME>
- gcs_proxy_credential_file: <PATH_TO_KEY_FILE>
- centos_base_install_selinux_packages: true
remote_user: <YOUR REMOTE USER>
become: yes
roles:
- bngsudheer.gcsql_proxy
Developement
To run molecule tests locally, you might want to set the ANSIBLE_ROLES_PATH variable.
export ANSIBLE_ROLES_PATH=/path/to/ansible-role-redmine/molecule/default/roles
License
BSD
Sudheer Satyanarayana
- Blog: https://www.techchorus.net
- Twitter: https://www.twitter.com/bngsudheer
- Work: https://www.gavika.com
Install
ansible-galaxy install bngsudheer/ansible-role-gcs_proxy
License
bsd-3-clause
Downloads
41
Owner
Software developer and DevOps consultant