Files
my-rook-config/pkg/daemon/ceph/test/info.go
T

14 lines
313 B
Go
Raw Normal View History

2016-11-21 14:24:07 -08:00
package test
import (
"io/ioutil"
"os"
2016-11-21 14:24:07 -08:00
"path"
)
2017-10-17 09:33:37 -07:00
func CreateConfigDir(configDir string) {
os.MkdirAll(configDir, 0744)
ioutil.WriteFile(path.Join(configDir, "client.admin.keyring"), []byte("key = adminsecret"), 0644)
ioutil.WriteFile(path.Join(configDir, "mon.keyring"), []byte("key = monsecret"), 0644)
2016-11-21 14:24:07 -08:00
}