On Thursday, July 11, 2019 at 2:55:43 PM UTC-5, Prentice Bisbal wrote: > > I'm trying to use bash to create custom facts that are booleans, > Unfortunately, when I do, the values are interpreted as strings, and not > booleans. For example, here is my bash script, gdm.sh:
As Ben and Josh stated you need to use json or yaml output to get datatypes other than strings. The docs are still out of date on this supported feature. Here is an example of the difference: key value output only parses strings: $ cat butter #!/bin/bash echo 'butter=false' $ facter --json butter { "butter": "false" } yaml output parses yaml datatypes $ cat bubbles #!/bin/bash cat <<'EOF' --- bubbles: false EOF $ facter --json bubbles { "bubbles": false } -- You received this message because you are subscribed to the Google Groups "Puppet Users" group. To unsubscribe from this group and stop receiving emails from it, send an email to puppet-users+unsubscr...@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/puppet-users/fb5c02ce-e767-40d0-8402-8bf9adc047d8%40googlegroups.com.