# File lib/simp/cli/config/items/action/set_up_puppet_autosign_action.rb, line 15 def os_value # TODO: make this a custom fact? values = Array.new File.readable?(@file) && File.readlines(@file).each do |line| next if line =~ /^(\#|\s*$)/ # if we encounter 'puppet.your.domain' (the default value from a # fresh simp-bootstrap RPM), infer this is a freshly installed system # with no legitimate autosign entries. if line =~ /^puppet.your.domain/ values = [] break end values << line.strip end if values.size == 0 nil else values end end