Hi Team,
Any tool available can convert puppet code to ansible code,?
Thanks
Raj
Hi Team,
Any tool available can convert puppet code to ansible code,?
Thanks
Raj
ChatGPT?
Not that I’m aware of, most of your Puppet is likely to be package/file/service pattern[1] modules combined with some Hieradata though. So you’re already half way there. You have your desired state already codified. So mapping from Puppet → Ansible then layering in any orchestration (you may have some Puppet Bolt stuff to port, too.)
Hiera data will largely map to host/group vars.
Puppet modules will largely map to roles.
Wrap in some testing (Inspec/Testinfra/etc.) to ensure the state as generated from Puppet is consistent with the new state generated by Ansible.
[1] https://www.puppet.com/docs/puppet/8/cheatsheet_core_types.html#the_trifecta