问题描述
我想通过脚本 Metadata_startup_script = "Installation of postgres and changes in the configuration file of postgres && systemctl restart postgresql"
在Google Cloud Platform中通过terraform完成VM的安装时为postgres用户设置密码
我尝试添加sudo -u postgres psql postgres && psql \\password postgres && abc abc" or this "sudo -u postgres psql postgres && psql \\password postgres -abc -abc"
,但这不起作用,有什么方法可以在创建VM时设置密码。我是GCP,terraform和脚本的新手,因此在此脚本中我为添加密码所做的任何操作都不对。任何线索都会对我有很大帮助。
enter code here
解决方法
暂无找到可以解决该程序问题的有效方法,小编努力寻找整理中!
如果你已经找到好的解决方法,欢迎将解决方案带上本链接一起发送给小编。
小编邮箱:dio#foxmail.com (将#修改为@)