Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
P
projet_terraform_ansible_k8s
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package registry
Container registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
GitLab community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
MUNIER Florian
projet_terraform_ansible_k8s
Commits
f43e5bbc
Commit
f43e5bbc
authored
2 years ago
by
MUNIER Florian
Browse files
Options
Downloads
Patches
Plain Diff
[add] ansible.cfg ssh_cfg.tf
parent
1bdd5dfe
No related branches found
No related tags found
No related merge requests found
Changes
3
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
.gitignore
+2
-1
2 additions, 1 deletion
.gitignore
Ansible/ansible.cfg
+3
-0
3 additions, 0 deletions
Ansible/ansible.cfg
Terraform/mod-os-private-network/ssh_cfg.tf
+7
-0
7 additions, 0 deletions
Terraform/mod-os-private-network/ssh_cfg.tf
with
12 additions
and
1 deletion
.gitignore
+
2
−
1
View file @
f43e5bbc
...
...
@@ -10,3 +10,4 @@ hosts.ini
hosts.ini
*.pem
*.pub
ssh.cfg
\ No newline at end of file
This diff is collapsed.
Click to expand it.
Ansible/ansible.cfg
0 → 100644
+
3
−
0
View file @
f43e5bbc
[ssh_connection]
ssh_args
=
-F ssh.cfg
control_path
=
.ssh/mux-%r@%h:%p
\ No newline at end of file
This diff is collapsed.
Click to expand it.
Terraform/mod-os-private-network/ssh_cfg.tf
0 → 100644
+
7
−
0
View file @
f43e5bbc
resource
"null_resource"
"ssh_cfg"
{
provisioner
"local-exec"
{
command
=
"echo 'Host bastion
\n
Hostname
${
openstack_networking_floatingip_v2
.
floatip_admin
.
address
}
\n
User ubuntu
\n
IdentityFile .ssh/
${
var
.
INSTANCE_BASTION_KEY_PAIR
}
.pem
\n
Host 192.*
\n
ProxyCommand ssh -F ssh.cfg -W %h:%p bastion
\n
User ubuntu
\n
IdentityFile .ssh/
${
var
.
INSTANCE_ORCHEST_KEY_PAIR
}
.pem
\n
Host *
\n
ControlMaster auto
\n
ControlPath .ssh/mux-%r@%h:%p
\n
ControlPersist 15m' > ssh.cfg"
}
depends_on
=
[
openstack_compute_instance_v2
.
orchestration_instance
]
}
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment