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

Cannot update instance metadata #43

@pegasd

Description

@pegasd

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions