   (deftest initialize-master!-test
     (let [serial-number-file (temp-serial-number-file)]
       (try
-        (initialize-master! ssldir-contents "master" "Puppet CA: localhost"
+        (initialize-master! master-settings "master" "Puppet CA: localhost"
                             (utils/pem->private-key cakey)
                             (utils/pem->cert cacert)
                             512

                       :hostcert    (str ssldir "/certs/master.pem")
                       :localcacert (str ssldir "/certs/ca.pem")
                       :hostprivkey (str ssldir "/private_keys/master.pem")
                       :hostpubkey  (str ssldir "/public_keys/master.pem")}
      ssldir-contents (settings->master-dir-paths master-settings)]

  (deftest initialize-ca!-test

          (doseq [file no-dirs]
            (spit file "unused content"))

          (initialize! ca-settings master-settings "master" 512)

          (doseq [file no-dirs]
            (is (= "unused content" (slurp file))
