canonical / canonical/cloud-init

instance-data in templates

Open
#3,632 1 comment 1 reaction 0 assignees View on GitHub
enhancement launchpad
Dominant language
Python
Stars
3.8k
Forks
1.1k
Avg merge
2d 23h
Merged PRs (30d)
18

Description

This bug was originally filed in Launchpad as [LP: #1868876](https://bugs.launchpad.net/cloud-init/+bug/1868876)

Launchpad details

affected_projects = []

assignee = None
assignee_name = None
date_closed = None
date_created = 2020-03-24T21:00:49.361062+00:00
date_fix_committed = None
date_fix_released = None
id = 1868876
importance = wishlist
is_complete = False
lp_url = https://bugs.launchpad.net/cloud-init/+bug/1868876
milestone = None
owner = andras0602
owner_name = Andras Kovacs
private = False
status = triaged
submitter = andras0602
submitter_name = Andras Kovacs
tags = []
duplicates = []

_Launchpad user **Andras Kovacs(andras0602)** wrote on 2020-03-24T21:00:49.361062+00:00_

Dear Team,

Could you make it possible to use instance-data variables in the /etc/cloud/templates/* files like hosts.*.tmpl files?

I've tried to add a line like this:
{{ ds.meta_data.local_ipv4 }} {{fqdn}} {{hostname}}

but it's not working.

I'm using a custom openstack fork.
I'm not attaching logs, because it's not a bug, more like a feature-request.

Of course, cloud-init is great and I can do it with runcmd easily.

Thank you!
Andras

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.