profile
viewpoint
Markus Juenemann mjuenema Melbourne, Australia http://www.juenemann.net Systems and Network Engineer

mjuenema/ansible-role-secure-cisco-ios 4

Ansible role for hardening a Cisco IOS router or switch

mjuenema/docker-alpine-peervpn 3

Alpine Linux based Docker image with PeerVPN

mjuenema/micropython-bitstring 2

A Python module to help you manage your bits

mjuenema/cisco-tools 1

Various scripts for working with Cisco network devices

mjuenema/docker-alpine-supervisor-peervpn 1

Alpine Linux based Docker image with PeerVPN under Supervisor

mjuenema/docker-eclipse-pydev-pythons 1

Docker image with Eclipse, PyDev and multiple Python versions.

mjuenema/alpine-linux-package-peervpn 0

Package PeerVPN for Alpine Linux

mjuenema/ansible 0

Ansible is a radically simple IT automation platform that makes your applications and systems easier to deploy. Avoid writing scripts or custom code to deploy and update your applications— automate in a language that approaches plain English, using SSH, with no agents to install on remote systems.

mjuenema/ansible-filter-cisco-hash 0

Ansible Jinja2 filters for Cisco type 5 and type 7 password hashes

mjuenema/ansible-filter-iosconf 0

Ansible Jinja2 filters for extracting lines from Cisco IOS-style configurations.

issue commentmjuenema/python-terrascript

Add support for `required_providers`

@jbscare I realized there is some limitations for the terraform property (namely, you can not update it by providing it multiple times). I prepared a fix for that: https://github.com/mjuenema/python-terrascript/pull/142 which I intent do get into develop ASAP.

jbscare

comment created time in 3 days

push eventmjuenema/python-terrascript

Ilon Sjögren

commit sha a6786fcb132c2dd24cd1e58b02035979dfda1178

Include note on terraform property merge function

view details

push time in 3 days

PR opened mjuenema/python-terrascript

Should allow for existing terraform block to be updated

This would satisfy https://github.com/mjuenema/python-terrascript/issues/120

+82 -1

0 comment

2 changed files

pr created time in 3 days

issue commentmjuenema/python-terrascript

Add support for `required_providers`

I agree that automatically adding providers to required_providers would be hard -- we're planning to use Terrascript to write code that does that, and we'll require versions in our configs, but I don't think Terrascript itself should be enforcing that.

I hadn't put together that you could do it like in your example, but looking at our code now, I see that this is how we do backends too, so the same thing should work here! Let me try it out, and if it works as expected for us, I'll close this out. Stay tuned!

jbscare

comment created time in 6 days

issue commentmjuenema/python-terrascript

Add support for `required_providers`

As of today, this is easy to add to ones generated configuration like this:

Python 3.8.6 (default, Sep 25 2020, 00:00:00) 
[GCC 10.2.1 20200723 (Red Hat 10.2.1-1)] on linux
Type "help", "copyright", "credits" or "license" for more information.
>>> import terrascript
>>> terrascript.Terrascript(terrascript.terraform(required_providers={"aws": {"source": "hashicorp/aws", "version": "~> 3.0"}}))
{'terraform': {'required_providers': {'aws': {'source': 'hashicorp/aws', 'version': '~> 3.0'}}}}

What is the requested feature? That any provider that gets added to the config are automatically added as a required_provider as well?
This would be possible to do for the providers where a version have been specified, but would otherwise be hard.
jbscare

comment created time in 6 days

push eventmjuenema/python-terrascript

Ilon Sjögren

commit sha d64625d9a4a373431eb54578e501110c88baf02c

Should include python 3.9

view details

Ilon Sjögren

commit sha 44960341af88f5de14ea383d89e43aa122b18706

Should keep changelog tidy and sorted

view details

Ilon Sjögren

commit sha 64ca42b8ec028b72a672cbe597cc7bbb50fc0736

Should keep providers formatted with black

view details

push time in 6 days

pull request commentmjuenema/python-terrascript

fixing wrong name, had used scaleway as template and missed this

@benediktkr Thank you for the contribution, did you by chance use the tools/makecode.py script to generate the provider?

benediktkr

comment created time in 6 days

startedmjuenema/python-terrascript

started time in 7 days

startedmjuenema/python-terrascript

started time in 9 days

startedmjuenema/python-terrascript

started time in 11 days

startedmjuenema/python-terrascript

started time in 17 days

startedmjuenema/python-terrascript

started time in 17 days

startedmjuenema/python-terrascript

started time in 17 days

fork osm1n/Terraform-Up-and-Running-Code-Samples-Translated

Code samples of the book "Terraform: Up and Running" translated to other providers than AWS.

fork in 17 days

startedmjuenema/python-terrascript

started time in 19 days

startedmjuenema/python-terrascript

started time in 22 days

startedmjuenema/python-terrascript

started time in 22 days

startedmjuenema/python-terrascript

started time in 22 days

startedmjuenema/python-terrascript

started time in 23 days

startedmjuenema/python-terrascript

started time in 23 days

issue commentmjuenema/python-terrascript

Add support for `required_providers`

Came here to ask if this is supported and, if not, if it could be added!

Need to add the equivalent to this HCL:

terraform {
  required_providers {
    datadog = {
      source = "datadog/datadog"
    }
  }
}
jbscare

comment created time in 23 days

startedmjuenema/python-terrascript

started time in 23 days

startedmjuenema/python-terrascript

started time in 23 days

startedmjuenema/python-terrascript

started time in 23 days

startedmjuenema/python-terrascript

started time in 23 days

startedmjuenema/python-terrascript

started time in 24 days

startedmjuenema/python-terrascript

started time in 24 days

startedmjuenema/python-terrascript

started time in 24 days

more