summaryrefslogtreecommitdiffstats
path: root/ext
diff options
context:
space:
mode:
authorLuke Kanies <luke@madstop.com>2007-09-13 16:09:44 -0500
committerLuke Kanies <luke@madstop.com>2007-09-13 16:09:44 -0500
commit3ccf483f77b026dde8a53bd8e9dff6a5fd0f6722 (patch)
tree8ac5a5113b71f5f278774bab005da54536439cb9 /ext
parent3632926089cb27b93ff075c05ba21e2340a562ac (diff)
downloadpuppet-3ccf483f77b026dde8a53bd8e9dff6a5fd0f6722.tar.gz
puppet-3ccf483f77b026dde8a53bd8e9dff6a5fd0f6722.tar.xz
puppet-3ccf483f77b026dde8a53bd8e9dff6a5fd0f6722.zip
Removing the completely obsolete passwd2puppet and the obsolete component.rb
Diffstat (limited to 'ext')
-rwxr-xr-xext/tools/passwd2puppet45
1 files changed, 0 insertions, 45 deletions
diff --git a/ext/tools/passwd2puppet b/ext/tools/passwd2puppet
deleted file mode 100755
index 29ffdbf95..000000000
--- a/ext/tools/passwd2puppet
+++ /dev/null
@@ -1,45 +0,0 @@
-#!/usr/bin/ruby -w
-
-#--------------------
-# Convert a passwd-format file to Puppet users
-#
-
-require 'getoptlong'
-
-result = GetoptLong.new(
- [ "--help", "-h", GetoptLong::NO_ARGUMENT ]
-)
-
-result.each { |opt,arg|
- case opt
- when "--help"
- puts "There is no help yet"
- exit
- else
- raise "Invalid option '#{opt}'"
- end
-}
-
-fields = %w{uid gid comment home shell}
-
-puts "user {"
-ARGV.each do |file|
- File.open(file) do |of|
- of.sort.each do |line|
- next if line =~ /^\s*#/
- next if line =~ /^\s*$/
-
- ary = line.chomp.split(":")
- puts " " + ary.shift + ":"
- ary.shift # get rid of that password field
-
- puts fields.zip(ary).collect { |field, val|
- " %s => \"%s\"" % [field, val]
- }.join(",\n") + ";"
-
- end
- end
-end
-puts "}"
-
-# $Id$