Where communities thrive


  • Join over 1.5M+ people
  • Join over 100K+ communities
  • Free without limits
  • Create your own community
People
Activity
  • 15:15
    aaron-lane closed #411
  • 15:15
    aaron-lane commented #411
  • 14:47
    jnahelou commented #411
  • Oct 26 15:50

    aaron-lane on master

    Fix test badges in README (compare)

  • Oct 11 08:03
    rubans commented #464
  • Oct 07 18:22
    tbugfinder closed #465
  • Oct 07 18:22
    tbugfinder commented #465
  • Oct 07 15:12
    aaron-lane labeled #465
  • Oct 07 15:12
    aaron-lane labeled #465
  • Oct 07 15:11
    aaron-lane commented #465
  • Oct 07 10:40
    tbugfinder opened #465
  • Sep 23 14:36
    aaron-lane commented #464
  • Sep 23 07:20
    rubans commented #464
  • Sep 22 08:07
    rubans commented #464
  • Sep 21 20:55
    aaron-lane commented #464
  • Sep 21 20:48
    aaron-lane commented #464
  • Sep 21 15:04
    rubans commented #464
  • Sep 21 14:45
    aaron-lane commented #464
  • Sep 21 14:43
    aaron-lane labeled #464
  • Sep 21 12:14
    rubans opened #464
Josef
@tbugfinder
Actually I've looked at the PR which added the feature. The output has to be part of the fixture output which could pass all module outputs.
Maybe we should add aPR to docs then.
James Clarke
@jamesp22_gitlab
so does it go in the main.tf in test/integrations/tf_module, or a seperate output.tf file?
Id love to see a working example ha, im sure im just missing something stupid.
Josef
@tbugfinder
I'll create a sample
Just noticed there's already something.
Josef
@tbugfinder
Hi @jamesp22_gitlab Let me know if this code explains it better. https://github.com/tbugfinder/kttfsample
Josef
@tbugfinder
Is there any specific configuration needed in kitchen.yml so that kitchen-terraform loads inspec profiles?
Josef
@tbugfinder
Actually I don't think so 👻
Aaron Lane
@aaron-lane
Nope, but you can specify alternative profiles if you're not using local profiles under test/integration
Josef
@tbugfinder
Hi, I'm wondering if a second verify run should actually also run terraform apply, or if this is by design only executed once?
Aaron Lane
@aaron-lane
That is by design. Kitchen is implemented as a state machine and the commands are cumulative, so when you run verify the first time it implicitly includes converge, but the second time the Kitchen instance is already converged so verify only verifies
@tbugfinder
Aaron Lane
@aaron-lane
@/all v5.6.0 has been released with support for Terraform 0.14.0 🎉
Josef
@tbugfinder
Thank you 👍👍
HAMMOUT
@jhammout
Hello, I'm wondering if i can use kitchen with terragrunt and how?
Josef
@tbugfinder
Hi @jhammout I'm not a terragrunt user but rather a "follower". I think it should be possible given that kitchen-terraform supports lifecycle hooks. So terragrunt would manage the "module code" and kitchen-terraform+terraform the test/fixture. Should terragrunt also manage the test/fixture terraform files or can those be rather static for any terragrunt environment?
Wouldn't you use terratest in terragrunt space?
Aaron Lane
@aaron-lane
@jhammout sorry for the late reply; Gitter for Android seems to have notifications 🤷 you can use the client attribute on the driver configuration to point to a Terragrunt binary rather than a Terraform binary. We actually test using Terragrunt in one of the scenarios to check compatibility
s/have/hate
Aaron Lane
@aaron-lane
v5.7.0 has been released with support for InSpec plugins. Big thanks to @tbugfinder for the implementation!
laboDiabo
@laboDiabo
Hi everyone, first of all thanks for the work on Kitchen-Terraform
Currently implementing it in our process :)
had a question about Terragrunt but I see @aaron-lane already commented something on this. Checking the use of "client" attribute.
@jhammout were you able to implement this?
Aaron Lane
@aaron-lane
v5.8.0 has been released with support for Terraform 0.15!
Josef
@tbugfinder
Thank you @aaron-lane - this release directly enabled us to move on with Terraform 1.0.0 🎉
Aaron Lane
@aaron-lane
@tbugfinder you're welcome!
TheSpartan1980
@TheSpartan1980
Hi everyone
Does anyone have an example of using Docker with kitchen-terraform? I tried using the tutorial here: https://newcontext-oss.github.io/kitchen-terraform/tutorials/docker_provider.html, however I know a lot has changed. I'm using Terraform 0.13.7, kitchen-terraform 5.8.0 (Ruby 2.7.3).
Aaron Lane
@aaron-lane
@TheSpartan1980 we also have a test case that uses the Docker provider: https://github.com/newcontext-oss/kitchen-terraform/tree/master/test%2Fterraform%2Fbackend-ssh
It's configured with the backend-ssh suite: https://www.github.com/newcontext-oss/kitchen-terraform/tree/master/kitchen.yml. Was there a specific issue that you're facing?
2 replies
Aaron Lane
@aaron-lane
@TheSpartan1980 great to hear :dancer: You may also be interested in the experimental terraform test command that is available as of Terraform v0.15: https://www.terraform.io/docs/language/modules/testing-experiment.html
1 reply
TheSpartan1980
@TheSpartan1980
@aaron-lane I have seen examples whereby you can run KT with AWSpec to test AWS infrastructure and you can also run it with Serverspec or Inspec to test the Ubuntu EC2 instances and software on them. What I would like to know it there a way to do both? For example deploy the infrastructure to AWS and test it has been setup/deployed correctly and then test to ensure that the EC2 instances are running the correct services and have the correct version of packages installed etc
Aaron Lane
@aaron-lane
@TheSpartan1980 KT only supports using InSpec, but InSpec can test AWS infrastructure as well: https://github.com/inspec/inspec-aws
1 reply
Aaron Lane
@aaron-lane
@TheSpartan1980 yes! You just need to configure different systems under the verifier, and then use different core or plugin InSpec resources in each system's controls