Skip to content
This repository has been archived by the owner on Oct 6, 2023. It is now read-only.

Cannot update instance metadata #43

Open
pegasd opened this issue Jun 10, 2018 · 0 comments
Open

Cannot update instance metadata #43

pegasd opened this issue Jun 10, 2018 · 0 comments

Comments

@pegasd
Copy link

pegasd commented Jun 10, 2018

Going from

gcompute_instance { 'my-instance':
  metadata => join([ '#!/bin/bash', "echo 'Hi!'" ], "\n"),
  [ ... snip ... ]
}

to

gcompute_instance { 'my-instance':
  metadata => join([ '#!/bin/bash', "echo 'Hi!'", "echo 'Hi again!'" ], "\n"),
  [ ... snip ... ]
}

produces the following output every time I apply the manifest:

Notice: Compiled catalog for localhost in environment production in 0.65 seconds
Notice: /Stage[main]/Main/Gcompute_instance[my-instance]/metadata: metadata changed {
  'startup-script' => "#!/usr/bin/bash\necho 'Hi!'"
} to {
  'startup-script' => "#!/usr/bin/bash\necho 'Hi!'\necho 'Hi again!'"
}
Notice: Applied catalog in 6.29 seconds

Instance metadata does not actually get updated.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant