我是盐堆的新手.
我正在努力确保存在符号链接.
/etc/localtime:
file.symlink:
- target: /usr/share/zoneinfo/Europe/Paris
- file.exists:
- name: /usr/share/zoneinfo/Europe/Paris
Run Code Online (Sandbox Code Playgroud)
当没有存在/etc/localtime或者/etc/localtime已经是符号链接时,结果是例外.但它/etc/localtime是常规文件时失败:
----------
State: - file
Name: /etc/localtime
Function: symlink
Result: False
Comment: File exists where the symlink /etc/localtime should be
Changes:
Run Code Online (Sandbox Code Playgroud)
我无法想象如何编码状态,因此在创建链接之前删除文件.任何线索?
干杯,皮埃尔
salt-stack ×1