17:26 PM
allfro
the funny part is that it used to work last night
17:26 PM
then today it stopped working all of a sudden
17:26 PM
ageorgop has quit
17:26 PM
im not sure what i’m doing wrong
17:26 PM
ageorgop joined the channel
17:28 PM
pll
crolek: because you've changed the state of what terraform thinks that instance definition should be.
17:28 PM
crolek
@pll, terraform is NOT considering it a change, thats the problem.
17:29 PM
pll
Oh, did I misread your question?
17:29 PM
Oh, I did.
17:29 PM
crolek
so if it's inline = [ "touch somefile"] and we change it to inline = [ "echo something"]
17:29 PM
pll
My apologies.
17:29 PM
crolek
it considers that "not a change"
17:29 PM
which i'd expect it to destroy the instance and make a new one (if it was an aws_instance)
17:29 PM
(no problem pll :) )
17:29 PM
pll
Hmm, perhaps because a remote-exec is essentially packaged up as a shell-script and lobbed over to the other side.
17:30 PM
Ziggy joined the channel
17:30 PM
Ziggy joined the channel
17:30 PM
crolek
oh, and its the "same" shell script under the covers?
17:30 PM
pll
Since the shell-script is still there, the terraform definition hasn't changed, only the contents of the script.
17:30 PM
Yeah, I think so.
17:30 PM
crolek
any idea how to force that update?
17:30 PM
(i mean it makes sense what youre saying.)
17:31 PM
pll
hmm. I think you can taint the object, then re-run the apply.
17:31 PM
That should force it.
17:31 PM
crolek
dang, that's not what i was hoping to hear :/
17:31 PM
pll
Why ?
17:32 PM
allfro
im thinking of just local execing now
17:32 PM
pll
Oh, a taint will require a destroy rebuild, right?
17:32 PM
allfro
this is ridiculous
17:32 PM
the azurerm ssh agent code is buggy :|
17:32 PM
crolek
yeah it will, but i'd have to manually taint a lot of resources to potentially update one inline script
17:32 PM
pll
hmm.
17:32 PM
crolek
but i think i can figure out a better solution, i just now have a better idea of "why" its not considering it a chagne
17:33 PM
pll
allfro: haven't used azure at all. I'm surprised the ssh code would be any different than the aws ssh code.
17:33 PM
allfro
it’s not as far as i can tell
17:33 PM
looking at the code it looks like it goes back down to a common file provisioner
17:33 PM
so really the file provisioner code appears to be buggy
17:33 PM
or the ssh agent code from the thirdparty is
17:33 PM
pll
allfro: interesting.
17:34 PM
allfro
but so far i have had no luck today doing remote-exec or file provisioner
17:34 PM
i keep getting ssh handshake errors
17:34 PM
yet i see no outbound ssh being initiated
17:34 PM
crolek
thank you again pll for helping answer my question(s)! :D
17:34 PM
pll
crolek: Perhaps if you comment out the entire remote-exec, run apply, uncomment, run apply again ?
17:34 PM
allfro
agent or agentless ssh fails
17:35 PM
:(
17:35 PM
pll
crolek: anytime. I hope you figure it out.
17:35 PM
allfro: can you set ssh -v to see where/why?
17:35 PM
allfro
how do i do that in terraform
17:35 PM
it’s terraform that is calling ssh somehow
17:35 PM
pll
good question...
17:35 PM
allfro
im doing TF_LOG=DEBUG
17:35 PM
but i get nothing on what ssh is doing
17:36 PM
pll
hmm, maybe if you set it in your .ssh/config ?
17:36 PM
allfro
all i see is the end result which is that the handshake fails
17:36 PM
let me see if that does anything
17:37 PM
pll
in your .ssh/config you can set: LogLevel VERBOSE|DEBUG1|DEBUG2|DEBUG3
17:39 PM
allfro
pll i did that
17:39 PM
and im experimenting
17:39 PM
but i dont see the ssh verbosity increasing
17:39 PM
pll
hmmm. That's strange.
17:40 PM
out of curiosity, does the verbosity increase using a normal ssh session ?
17:41 PM
allfro
?
17:41 PM
muddymud joined the channel
17:41 PM
not sure what you mean pll
17:42 PM
pll
if you just run ssh from the command line with LogLevel set to VERBOSE, do you see a verbose session?
17:43 PM
allfro
n
17:43 PM
no
17:43 PM
i dont see a verbose session unfortunately :(
17:44 PM
pll
bummer.
17:44 PM
I've gotta run, good luck figuring this out.
17:44 PM
allfro
nvm
17:44 PM
VERBOSE is not what i thought it would be
17:44 PM
b-dean has quit
17:44 PM
has to be DEBUG
17:44 PM
pll
oh, that makes sense.
17:45 PM
wraithm has quit
17:45 PM
pll has left the channel
17:47 PM
esumerfd has quit
17:47 PM
allfro
anybody else having a lot of pain with the remote exec and file provisioner for linux hosts?
17:48 PM
sidarta joined the channel
17:48 PM
iamchrisf joined the channel
17:55 PM
sillyhat has quit
17:57 PM
jian_ has quit
17:57 PM
uhm
17:58 PM
why is terraform trying to connect to localhost?
17:58 PM
when remote provisioning
17:58 PM
?
17:59 PM
apes has left the channel
18:04 PM
SneakyPhil
hey everybody
18:05 PM
Does anyone have an example of creating ebs volumes and attaching them to servers spun up from an autoscaling group?
18:07 PM
sl4v3 joined the channel
18:08 PM
jian joined the channel
18:11 PM
allfro
18:12 PM
have you taken a look at the different resource provisioners?
18:12 PM
in the docs
18:14 PM
ZiggyTheHamster joined the channel
18:15 PM
Ziggy has quit
18:18 PM
Ziggy joined the channel
18:18 PM
Ziggy has quit
18:18 PM
Ziggy joined the channel
18:23 PM
muddymud joined the channel
18:25 PM
crolek has quit
18:34 PM
ZiggyTheHamster joined the channel
18:38 PM
bosszaru joined the channel
18:40 PM
jasonkuhrt joined the channel
18:43 PM
sparkie joined the channel
18:46 PM
chester joined the channel
18:49 PM
esumerfd joined the channel
18:53 PM
puhrez joined the channel
18:55 PM
zerocoolback joined the channel
18:56 PM
mapu joined the channel
18:59 PM
dlh joined the channel
18:59 PM
dlh is now known as Guest41393
19:01 PM
EzeQL joined the channel
19:01 PM
chester
Hi, I'm a new Terraform user and I'm having trouble solving an issue that none of my colleagues can answer. I am trying to move a service over to a new server and I need to create new load balancers, but I want to use an existing DNS record that wasn't created through Terraform. What is happening is that when I create the new load balancer, its recreating the DNS record and there is about 5-10 minutes downtime in which I cannot r
19:02 PM
this migration with no downtime? Can I somehow add the existing DNS entry into Terraform even though it was created through the AWS Console?
19:03 PM
katherine joined the channel
19:07 PM
wraithm joined the channel
19:07 PM
mattupstate
chester, look into the import feature
19:08 PM
19:10 PM
jian joined the channel
19:10 PM
chucky_z joined the channel
19:11 PM
Ziggy joined the channel
19:11 PM
Ziggy has quit
19:11 PM
Ziggy joined the channel
19:12 PM
dene14 has quit
19:13 PM
rsampaio_ joined the channel
19:18 PM
Luke joined the channel
19:19 PM
esumerfd has quit
19:28 PM
actinide has quit
19:30 PM
yeoman has quit
19:36 PM
ZiggyTheHamster joined the channel
19:36 PM
ZiggyTheHamster has quit
19:36 PM
ZiggyTheHamster joined the channel
19:38 PM
actinide joined the channel
19:39 PM
actinide has quit
19:41 PM
z0mbix joined the channel
19:42 PM
actinide joined the channel
19:43 PM
muddymud joined the channel
19:49 PM
sarkis has quit
19:49 PM
xavia has quit
19:51 PM
ageorgop has quit
19:52 PM
nya_ has quit
19:56 PM
ajw0100 joined the channel
19:57 PM
sparkie has quit
20:04 PM
ageorgop joined the channel
20:07 PM
ajw0100 has quit
20:07 PM
Guest41393 has quit
20:07 PM
dlh joined the channel