/srv/irclogs.ubuntu.com/2021/07/27/#cloud-init.txt

firstofth300rharper: The problem I'm facing is that I don't necessarily know any of the information ahead of time. It's all queried at runtime through the DigitalOcean data source. One of the pieces is the presence of an anchor IP which is only provided via the metadata server which I potentially could be using for floating IPs. If I could just configure the05:21
firstofth300VPC with proper routes, I would. I really wish that cloud-init would provide an option to append routes as that seems like it is a potentially more common use case for the smaller independent clouds like DO and Linode.05:21
firstofth300It would make things more portable in case I need to use a combination of CentOS/Debian/Ubuntu, etc.05:22
firstofth300I suppose since I'm using a combination of Saltstack and cloud-init that I can just runcmd this and then use a salt state to add the routes itself.05:26
=== andrewbogott is now known as Guest7322
=== Guest7322 is now known as andrewbogott
=== esv_ is now known as esv
rharperfirstofth300: yeah, the challenge as you mentioned, is knowing certain info ahead of time; that's what the platform tells cloud-init;   If there is additional metadata from DO about the route you need to configure, then the DO datasource could be updated to include that route when it renders networking.  17:30
firstofth300Yeah, I suppose there could be some sort of metadata set ahead of time that specifies routes to add.18:08
firstofth300I solved the problem using runcmd and Saltstack though which I'm happy enough with.18:08
firstofth300runcmd to configure the networking to be able to reach the Salt master and salt to actually render the routes.18:09

Generated by irclog2html.py 2.7 by Marius Gedminas - find it at mg.pov.lt!