I have written salt-states to install and run the cloudflared. The state is as follow:-
cloudflare.install: cmd.run: - name: cloudflared service install