cdist
4.2.1
  • 1. cdist - usable configuration management
  • 2. Why should I use cdist?
  • 3. Supported Operating Systems
  • 4. How to install cdist
  • 5. How to update cdist
  • 6. Support
  • 7. Features
  • 8. Quickstart
  • 9. cdist(1)
  • 10. Bootstrap
  • 11. Manifest
  • 12. cdist type
  • 13. cdist types
    • 13.1. cdist-type__apt_key(7)
    • 13.2. cdist-type__apt_key_uri(7)
    • 13.3. cdist-type__apt_norecommends(7)
    • 13.4. cdist-type__apt_ppa(7)
    • 13.5. cdist-type__apt_source(7)
    • 13.6. cdist-type__apt_update_index(7)
    • 13.7. cdist-type__block(7)
    • 13.8. cdist-type__ccollect_source(7)
    • 13.9. cdist-type__cdist(7)
    • 13.10. cdist-type__cdistmarker(7)
    • 13.11. cdist-type__config_file(7)
    • 13.12. cdist-type__consul(7)
    • 13.13. cdist-type__consul_agent(7)
    • 13.14. cdist-type__consul_check(7)
    • 13.15. cdist-type__consul_reload(7)
    • 13.16. cdist-type__consul_service(7)
    • 13.17. cdist-type__consul_template(7)
    • 13.18. cdist-type__consul_template_template(7)
    • 13.19. cdist-type__consul_watch_checks(7)
    • 13.20. cdist-type__consul_watch_event(7)
    • 13.21. cdist-type__consul_watch_key(7)
    • 13.22. cdist-type__consul_watch_keyprefix(7)
    • 13.23. cdist-type__consul_watch_nodes(7)
    • 13.24. cdist-type__consul_watch_service(7)
    • 13.25. cdist-type__consul_watch_services(7)
    • 13.26. cdist-type__cron(7)
    • 13.27. cdist-type__debconf_set_selections(7)
    • 13.28. cdist-type__directory(7)
    • 13.29. cdist-type__dog_vdi(7)
    • 13.30. cdist-type__file(7)
    • 13.31. cdist-type__firewalld_rule(7)
    • 13.32. cdist-type__git(7)
    • 13.33. cdist-type__group(7)
    • 13.34. cdist-type__hostname(7)
    • 13.35. cdist-type__iptables_apply(7)
    • 13.36. cdist-type__iptables_rule(7)
    • 13.37. cdist-type__issue(7)
    • 13.38. cdist-type__jail(7)
    • 13.39. cdist-type__jail_freebsd10(7)
    • 13.40. cdist-type__jail_freebsd9(7)
    • 13.41. cdist-type__key_value(7)
    • 13.42. cdist-type__line(7)
    • 13.43. cdist-type__link(7)
      • 13.43.1. NAME
      • 13.43.2. DESCRIPTION
      • 13.43.3. REQUIRED PARAMETERS
      • 13.43.4. OPTIONAL PARAMETERS
      • 13.43.5. EXAMPLES
      • 13.43.6. AUTHORS
      • 13.43.7. COPYING
    • 13.44. cdist-type__locale(7)
    • 13.45. cdist-type__motd(7)
    • 13.46. cdist-type__mount(7)
    • 13.47. cdist-type__mysql_database(7)
    • 13.48. cdist-type__package(7)
    • 13.49. cdist-type__package_apt(7)
    • 13.50. cdist-type__package_emerge(7)
    • 13.51. cdist-type__package_emerge_dependencies(7)
    • 13.52. cdist-type__package_luarocks(7)
    • 13.53. cdist-type__package_opkg(7)
    • 13.54. cdist-type__package_pacman(7)
    • 13.55. cdist-type__package_pip(7)
    • 13.56. cdist-type__package_pkg_freebsd(7)
    • 13.57. cdist-type__package_pkg(7)
    • 13.58. cdist-type__package_pkgng_freebsd(7)
    • 13.59. cdist-type__package_rubygem(7)
    • 13.60. cdist-type__package_update_index(7)
    • 13.61. cdist-type__package_upgrade_all(7)
    • 13.62. cdist-type__package_yum(7)
    • 13.63. cdist-type__package_zypper(7)
    • 13.64. cdist-type__pacman_conf(7)
    • 13.65. cdist-type__pacman_conf_integrate(7)
    • 13.66. cdist-type__pf_apply(7)
    • 13.67. cdist-type__pf_ruleset(7)
    • 13.68. cdist-type__postfix(7)
    • 13.69. cdist-type__postfix_master(7)
    • 13.70. cdist-type__postfix_postconf(7)
    • 13.71. cdist-type__postfix_postmap(7)
    • 13.72. cdist-type__postfix_reload(7)
    • 13.73. cdist-type__postgres_database(7)
    • 13.74. cdist-type__postgres_role(7)
    • 13.75. cdist-type__process(7)
    • 13.76. cdist-type__pyvenv(7)
    • 13.77. cdist-type__qemu_img(7)
    • 13.78. cdist-type__rbenv(7)
    • 13.79. cdist-type__rsync(7)
    • 13.80. cdist-type__rvm(7)
    • 13.81. cdist-type__rvm_gemset(7)
    • 13.82. cdist-type__rvm_gemset(7)
    • 13.83. cdist-type__rvm_ruby(7)
    • 13.84. cdist-type__ssh_authorized_key(7)
    • 13.85. cdist-type__ssh_authorized_keys(7)
    • 13.86. cdist-type__ssh_dot_ssh(7)
    • 13.87. cdist-type__staged_file(7)
    • 13.88. cdist-type__start_on_boot(7)
    • 13.89. cdist-type__timezone(7)
    • 13.90. cdist-type__update_alternatives(7)
    • 13.91. cdist-type__user(7)
    • 13.92. cdist-type__user_groups(7)
    • 13.93. cdist-type__yum_repo(7)
    • 13.94. cdist-type__zypper_repo(7)
    • 13.95. cdist-type__zypper_service(7)
  • 14. Explorer
  • 15. Messaging
  • 16. Reference
  • 17. Best practice
  • 18. Execution stages
  • 19. Remote exec and copy commands
  • 20. Hacking
  • 21. Troubleshooting
cdist
  • Docs »
  • 13. cdist types »
  • 13.43. cdist-type__link(7)
  • View page source

13.43. cdist-type__link(7)¶

13.43.1. NAME¶

cdist-type__link - Manage links (hard and symbolic)

13.43.2. DESCRIPTION¶

This cdist type allows you to manage hard and symbolic links. The given object id is the destination for the link.

13.43.3. REQUIRED PARAMETERS¶

source
Specifies the link source.
type
Specifies the link type: Either hard or symoblic.

13.43.4. OPTIONAL PARAMETERS¶

state
‘present’ or ‘absent’, defaults to ‘present’

13.43.5. EXAMPLES¶

# Create hard link of /etc/shadow
__link /root/shadow --source /etc/shadow --type hard

# Relative symbolic link
__link /etc/apache2/sites-enabled/www.test.ch   \
   --source ../sites-available/www.test.ch      \
   --type symbolic

# Absolute symbolic link
__link /opt/plone --source /home/services/plone --type symbolic

# Remove link
__link /opt/plone --state absent

13.43.6. AUTHORS¶

Nico Schottelius <nico-cdist--@--schottelius.org>

13.43.7. COPYING¶

Copyright (C) 2011-2012 Nico Schottelius. Free use of this software is granted under the terms of the GNU General Public License version 3 (GPLv3).

Next Previous

© Copyright .

Built with Sphinx using a theme provided by Read the Docs.