Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #!/usr/bin/env python
- def per_host_grains(socket.gethostname())
- custom_grain = {
- node1: "node1property",
- node2: "node2property",
- }
- return custom_grain.get(socket.gethostname(), "nothing")
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement