Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Added Windows Support #259

Merged
merged 5 commits into from
Jan 20, 2016
Merged

Added Windows Support #259

merged 5 commits into from
Jan 20, 2016

Commits on Jan 19, 2016

  1. Added Windows Support

    * Fixes #236
    * Added Windows Support (binary install_method only) using NSSM
      to manage the service. NSSM runs consul as the local SYSTEM user.
      Support for running it as another user can/should be added later.
    * Prevented the firewall cookbook from creating rules for disabled
      ports
    * Added & Updated spec tests
    * Disabled Style/ModuleFunction cop
    Ginja committed Jan 19, 2016
    2 Configuration menu
    Copy the full SHA
    ad2fcf5 View commit details
    Browse the repository at this point in the history
  2. Simplified the setting of paths

    * Simplified how attributes with paths for values are set
    * Changed default values for data_dir attribute to keep everything
      simple
    * Added version check to windows binary installation so that it can
      be upgraded
    Ginja committed Jan 19, 2016
    Configuration menu
    Copy the full SHA
    8b18fbe View commit details
    Browse the repository at this point in the history
  3. Exposed nssm parameters

    Added a Windows only attribute that allows
    cookbook users to override and/or add their own
    nssm parameters. Added logic for comparing
    nssm parameters as the nssm resource doesn't
    currently do this. Reverted the change to the
    default path for the data directory. Borrowed
    some of these ideas from @gdavison, thanks!
    Ginja committed Jan 19, 2016
    Configuration menu
    Copy the full SHA
    3b8ce6c View commit details
    Browse the repository at this point in the history
  4. Fixed an edge case, & changed default nssm parameters

    Added exit code 1 as an acceptable return code within
    `nssm_service_installed?`. If AppRotateOnline is not set
    for nssm, it will only rotate the logs when the service
    is restarted. Changed the default nssm parameters so
    that logs are rotated when they reach 20 MB in size.
    Ginja committed Jan 19, 2016
    Configuration menu
    Copy the full SHA
    478a2e8 View commit details
    Browse the repository at this point in the history

Commits on Jan 20, 2016

  1. Added nssm running check & updated consul_definition

    Added a check to start Consul via nssm if it's not running. And
    updated consul_definition resource/provider with the new helper
    methods.
    Ginja committed Jan 20, 2016
    Configuration menu
    Copy the full SHA
    cf8a9fb View commit details
    Browse the repository at this point in the history