cdist Logo
6.1.0
  • 1. Why should I use cdist?
  • 2. Features
  • 3. Supported operating systems
  • 4. How to install cdist
  • 5. How to upgrade cdist
  • 6. Support
  • 7. Quickstart
  • 8. Dive into real world cdist
  • 9. cdist(1)
  • 10. cdist-dump(1)
  • 11. cdist-new-type(1)
  • 12. Bootstrap
  • 13. Configuration
  • 14. Manifest
  • 15. cdist type
  • 16. cdist types
    • 16.1. cdist-type__acl(7)
    • 16.2. cdist-type__apt_default_release(7)
    • 16.3. cdist-type__apt_key(7)
    • 16.4. cdist-type__apt_key_uri(7)
    • 16.5. cdist-type__apt_mark(7)
    • 16.6. cdist-type__apt_norecommends(7)
    • 16.7. cdist-type__apt_ppa(7)
    • 16.8. cdist-type__apt_source(7)
    • 16.9. cdist-type__apt_update_index(7)
    • 16.10. cdist-type__block(7)
    • 16.11. cdist-type__ccollect_source(7)
    • 16.12. cdist-type__cdist(7)
    • 16.13. cdist-type__cdistmarker(7)
    • 16.14. cdist-type__check_messages(7)
    • 16.15. cdist-type__chroot_mount(7)
    • 16.16. cdist-type__chroot_umount(7)
    • 16.17. cdist-type__clean_path(7)
    • 16.18. cdist-type__config_file(7)
    • 16.19. cdist-type__consul(7)
    • 16.20. cdist-type__consul_agent(7)
    • 16.21. cdist-type__consul_check(7)
    • 16.22. cdist-type__consul_reload(7)
    • 16.23. cdist-type__consul_service(7)
    • 16.24. cdist-type__consul_template(7)
    • 16.25. cdist-type__consul_template_template(7)
    • 16.26. cdist-type__consul_watch_checks(7)
    • 16.27. cdist-type__consul_watch_event(7)
    • 16.28. cdist-type__consul_watch_key(7)
    • 16.29. cdist-type__consul_watch_keyprefix(7)
    • 16.30. cdist-type__consul_watch_nodes(7)
    • 16.31. cdist-type__consul_watch_service(7)
    • 16.32. cdist-type__consul_watch_services(7)
    • 16.33. cdist-type__cron(7)
    • 16.34. cdist-type__daemontools(7)
    • 16.35. cdist-type__daemontools_service(7)
    • 16.36. cdist-type__debconf_set_selections(7)
    • 16.37. cdist-type__directory(7)
    • 16.38. cdist-type__docker(7)
    • 16.39. cdist-type__docker_compose(7)
    • 16.40. cdist-type__docker_config(7)
    • 16.41. cdist-type__docker_secret(7)
    • 16.42. cdist-type__docker_stack(7)
    • 16.43. cdist-type__docker_swarm(7)
    • 16.44. cdist-type__dog_vdi(7)
    • 16.45. cdist-type__dot_file(7)
    • 16.46. cdist-type__file(7)
    • 16.47. cdist-type__filesystem(7)
    • 16.48. cdist-type__firewalld_rule(7)
    • 16.49. cdist-type__firewalld_start(7)
    • 16.50. cdist-type__git(7)
    • 16.51. cdist-type__go_get(7)
    • 16.52. cdist-type__golang_from_vendor(7)
    • 16.53. cdist-type__grafana_dashboard(7)
    • 16.54. cdist-type__group(7)
    • 16.55. cdist-type__hostname(7)
    • 16.56. cdist-type__hosts(7)
    • 16.57. cdist-type__install_bootloader_grub(7)
    • 16.58. cdist-type__install_chroot_mount(7)
    • 16.59. cdist-type__install_chroot_umount(7)
    • 16.60. cdist-type__install_config(7)
    • 16.61. cdist-type__install_coreos(7)
    • 16.62. cdist-type__directory(7)
    • 16.63. cdist-type__install_file(7)
    • 16.64. cdist-type__install_fstab(7)
    • 16.65. cdist-type__install_generate_fstab(7)
    • 16.66. cdist-type__install_mkfs(7)
    • 16.67. cdist-type__install_mount(7)
    • 16.68. cdist-type__install_partition_msdos(7)
    • 16.69. cdist-type__install_partition_msdos_apply(7)
    • 16.70. cdist-type__install_reboot(7)
    • 16.71. cdist-type__install_reset_disk(7)
    • 16.72. cdist-type__install_stage(7)
    • 16.73. cdist-type__install_umount(7)
    • 16.74. cdist-type__iptables_apply(7)
    • 16.75. cdist-type__iptables_rule(7)
    • 16.76. cdist-type__issue(7)
    • 16.77. cdist-type__jail(7)
    • 16.78. cdist-type__jail_freebsd10(7)
    • 16.79. cdist-type__jail_freebsd9(7)
    • 16.80. cdist-type__key_value(7)
    • 16.81. cdist-type__keyboard(7)
    • 16.82. cdist-type__letsencrypt_cert(7)
    • 16.83. cdist-type__line(7)
    • 16.84. cdist-type__link(7)
      • 16.84.1. NAME
      • 16.84.2. DESCRIPTION
      • 16.84.3. REQUIRED PARAMETERS
      • 16.84.4. OPTIONAL PARAMETERS
      • 16.84.5. MESSAGES
      • 16.84.6. EXAMPLES
      • 16.84.7. AUTHORS
      • 16.84.8. COPYING
    • 16.85. cdist-type__locale(7)
    • 16.86. cdist-type__locale_system(7)
    • 16.87. cdist-type__motd(7)
    • 16.88. cdist-type__mount(7)
    • 16.89. cdist-type__mysql_database(7)
    • 16.90. cdist-type__package(7)
    • 16.91. cdist-type__package_akp(7)
    • 16.92. cdist-type__package_apt(7)
    • 16.93. cdist-type__package_dpkg(7)
    • 16.94. cdist-type__package_emerge(7)
    • 16.95. cdist-type__package_emerge_dependencies(7)
    • 16.96. cdist-type__package_luarocks(7)
    • 16.97. cdist-type__package_opkg(7)
    • 16.98. cdist-type__package_pacman(7)
    • 16.99. cdist-type__package_pip(7)
    • 16.100. cdist-type__package_pkg_freebsd(7)
    • 16.101. cdist-type__package_pkg(7)
    • 16.102. cdist-type__package_pkgng_freebsd(7)
    • 16.103. cdist-type__package_rubygem(7)
    • 16.104. cdist-type__package_update_index(7)
    • 16.105. cdist-type__package_upgrade_all(7)
    • 16.106. cdist-type__package_yum(7)
    • 16.107. cdist-type__package_zypper(7)
    • 16.108. cdist-type__pacman_conf(7)
    • 16.109. cdist-type__pacman_conf_integrate(7)
    • 16.110. cdist-type__pf_apply(7)
    • 16.111. cdist-type__pf_ruleset(7)
    • 16.112. cdist-type__ping(7)
    • 16.113. cdist-type__postfix(7)
    • 16.114. cdist-type__postfix_master(7)
    • 16.115. cdist-type__postfix_postconf(7)
    • 16.116. cdist-type__postfix_postmap(7)
    • 16.117. cdist-type__postfix_reload(7)
    • 16.118. cdist-type__postgres_database(7)
    • 16.119. cdist-type__postgres_extension(7)
    • 16.120. cdist-type__postgres_role(7)
    • 16.121. cdist-type__process(7)
    • 16.122. cdist-type__prometheus_alertmanager(7)
    • 16.123. cdist-type__prometheus_exporter(7)
    • 16.124. cdist-type__prometheus_server(7)
    • 16.125. cdist-type__pyvenv(7)
    • 16.126. cdist-type__qemu_img(7)
    • 16.127. cdist-type__rbenv(7)
    • 16.128. cdist-type__rsync(7)
    • 16.129. cdist-type__rvm(7)
    • 16.130. cdist-type__rvm_gemset(7)
    • 16.131. cdist-type__rvm_gemset(7)
    • 16.132. cdist-type__rvm_ruby(7)
    • 16.133. cdist-type__sensible_editor(7)
    • 16.134. cdist-type__ssh_authorized_key(7)
    • 16.135. cdist-type__ssh_authorized_keys(7)
    • 16.136. cdist-type__ssh_dot_ssh(7)
    • 16.137. cdist-type__staged_file(7)
    • 16.138. cdist-type__start_on_boot(7)
    • 16.139. cdist-type__sysctl(7)
    • 16.140. cdist-type__systemd_unit(7)
    • 16.141. cdist-type__timezone(7)
    • 16.142. cdist-type__ufw(7)
    • 16.143. cdist-type__ufw_rule(7)
    • 16.144. cdist-type__update_alternatives(7)
    • 16.145. cdist-type__user(7)
    • 16.146. cdist-type__user_groups(7)
    • 16.147. cdist-type__xymon_apache(7)
    • 16.148. cdist-type__xymon_client(7)
    • 16.149. cdist-type__xymon_config(7)
    • 16.150. cdist-type__xymon_server(7)
    • 16.151. cdist-type__yum_repo(7)
    • 16.152. cdist-type__zypper_repo(7)
    • 16.153. cdist-type__zypper_service(7)
  • 17. Explorer
  • 18. Messaging
  • 19. Parallelization
  • 20. Inventory
  • 21. PreOS
  • 22. cdist integration / using cdist as library
  • 23. Reference
  • 24. Best practice
  • 25. Execution stages
  • 26. Local cache overview
  • 27. Saving output streams
  • 28. Remote exec and copy commands
  • 29. Hacking
  • 30. Troubleshooting
cdist
  • Docs »
  • 16. cdist types »
  • 16.84. cdist-type__link(7)
  • View page source

16.84. cdist-type__link(7)¶

16.84.1. NAME¶

cdist-type__link - Manage links (hard and symbolic)

16.84.2. DESCRIPTION¶

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

16.84.3. REQUIRED PARAMETERS¶

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

16.84.4. OPTIONAL PARAMETERS¶

state
'present' or 'absent', defaults to 'present'

16.84.5. MESSAGES¶

created <destination>
Link to destination was created.
removed <destination>
Link to destination was removed.
removed <destination> (directory)
Destination was removed because state is present and destination was directory.
removed <destination> (wrongsource)
Destination was removed because state is present and destination link source was wrong.

16.84.6. 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

16.84.7. AUTHORS¶

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

16.84.8. COPYING¶

Copyright (C) 2011-2012 Nico Schottelius. You can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version.

Next Previous

© Copyright ungleich GmbH 2019

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