Skip to content

Instantly share code, notes, and snippets.

@masiulaniec
masiulaniec / gist:2782828
Created May 24, 2012 17:07
Lookup ssh(1) password in factotum(4)
diff --git a/misc.c b/misc.c
index a7a23dc..73a1741 100644
--- a/misc.c
+++ b/misc.c
@@ -712,6 +712,59 @@ tun_open(int tun, int mode)
#endif
}
+/*
+ * Query factotum(4) for the password. Return NULL if not found.
apiVersion: deploy.cloud.google.com/v1beta1
kind: DeliveryPipeline
metadata:
name: demo-clouddeploy
description: main application pipeline
serialPipeline:
stages:
- targetId: devtarget
profiles:
- dev