If you want to use etcd for this no matter what you can try to store a string of YAML or JSON under this specific key* in etcd. Then you can have the templating interpret this and load your list into a variable:
```
{% load_yaml as pkgs %}
{% pillar['packages'] %}
{% endload %}
list_of_pkgsrc_from_etcd:
pkg.installed:
- names: {{ pkgs }}
```
Not sure if jinja would evaluate this in the right order to work but may be worth a try.
To enforce the order of evaluation you could move the `load_yaml` into a different file you tell jinja to load the variable from but now the hacks are really getting ugly…
Regards, Florian
> >> <javascript:>> wrote:
> >>
> >>> Hello,
> >>>
> >>> I am experimenting with putting pillar data into etcd. Keys with
> >>> individual values work great! But I'm seeing problems with keys
> and
> >>> multiple values in etcd. I have an existing pillar file that looks
> like the
> >>> following:
> >>>
> >>>
> >>> osprep-installed6-atlassian:
> >>> - firefox
> >>> - git
> >>> - tmux
> >>> - htop
> >>>
> >>>
> >>> etc etc
> >>>
> >>>
> >>>
> >>> My etcd info was ingested to the key via the urlencode function in
> etcd
> >>> from a text file:
> >>>
> >>> *text file contents*:
> >>>
> >>> - firefox
> >>> - git
> >>> - tmux
> >>> - htop
> >>>
> >>>
> >>> *etcd data ingestion*:
> >>> *salt pillar items*:
> >>>
> >>> *From etcd*:
> >>> root@stewie osprep]# salt \* pillar.item
> osprep-installed6-atlassian
> >>>
brian.example.com:
> >>> ----------
> >>> osprep-installed6-atlassian:
> >>> - firefox
> >>> - git
> >>> - tmux
> >>> - htop
> >>>
> >>>
> >>> *From pillar file*: