Comment 2 for bug 1975818

Revision history for this message
Alberto Contreras (aciba) wrote (last edit ):

Reproduced with:

```sh
cat <<EOT > /tmp/user-data.yaml
#cloud-config
yum_repos:
  rhel-8.5-appstream-mycloud:
    baseurl: <url>
    name: "repo name"
    enabled: True
EOT

lxc launch images:fedora/36/cloud fedora --config=user.user-data="$(cat /tmp/user-data.yaml)"
lxc exec fedora -- cloud-init status --wait
lxc exec fedora -- cat /etc/yum.repos.d/rhel_8.5_appstream_mycloud.repo
```

I did not find an official source saying that repo ids must contain "-" as word separator, but it looks like they do. Therefore, I think it would be safe to remove that line and let users have more control over repo names.