/etc/systemd/system/kube-apiserver.service
[Unit]
#cloud-config | |
--- | |
write_files: | |
- path: /opt/bin/waiter.sh | |
owner: root | |
content: | | |
#! /usr/bin/bash | |
until curl http://127.0.0.1:4001/v2/machines; do sleep 2; done | |
coreos: |
<profile> | |
<id>fuse-ea</id> | |
<repositories> | |
<repository> | |
<id>ea.fusesource.org</id> | |
<name>FuseSource Release Repository</name> | |
<url>http://repo.fusesource.com/nexus/content/groups/ea</url> | |
<snapshots> | |
<enabled>false</enabled> | |
</snapshots> |
(defn sha-512 | |
"Return the SHA-512 of the given string" | |
[data] | |
(let [md (. java.security.MessageDigest getInstance "SHA-512")] | |
(. md update (.getBytes data)) | |
(let [bytes (. md digest)] | |
(reduce #(str %1 (format "%02x" %2)) "" bytes)))) | |
(defn hash-repeatedly | |
"Hash the given string n number of times" |