I thought puppet/chef were the pit of the devops ridicule. Then I not only saw this, but also positive reactions to a readable code in which you have : echo 'nameserver 8.8.8.8' > "$btrfs_path/$uuid"/etc/resolv.conf This is wrong on so many level that I don't know where to begin with.
Can you share why you think puppet/chef are the "pit of the devops ridicule"?
Having now used Salt and starting to play with Ansible I'm growing an extreme dislike for Puppet and the weeks of my life I can never recover dealing with things that Salt has made so much easier.