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

hosts.yml ranges #1671

Closed
joelpittet opened this issue Aug 8, 2018 · 7 comments
Closed

hosts.yml ranges #1671

joelpittet opened this issue Aug 8, 2018 · 7 comments
Labels
Milestone

Comments

@joelpittet
Copy link
Contributor

joelpittet commented Aug 8, 2018

Q A
Issue Type Bug / Feature Request
Deployer Version 6
Local Machine OS OS X 10.13
Remote Machine OS Redhat 7

Description

Tried to add ranges to the host or hostname in the hosts.yml file

Not sure if this a bug or feature request but likely the latter

Steps to reproduce

production:
  hostname: www[01-05].example.com
  stage: production

Content of deploy.php

inventory('hosts.yml');

Output log

  The command "rm -f /var/www/example/.dep/deploy.lock" failed.
  Exit Code: -1 (Unknown error)
  Host Name: www[01:05].example.com
  ================
  ssh: Could not resolve hostname www[01:05].example.com: nodename nor servname provided, or not known
@joelpittet
Copy link
Contributor Author

Oh this change looks promising #1541

@antonmedv
Copy link
Member

Will fix it.

@antonmedv
Copy link
Member

Fixed.

@joelpittet
Copy link
Contributor Author

Thanks @antonmedv

Should this work as well with the hostname key?

production:
  hostname: www[01-05].example.com
  stage: production

@joelpittet
Copy link
Contributor Author

I gave it a whirl and doesn't seem to work with hostname key. But a big thanks, that was a fast fix!

@antonmedv
Copy link
Member

I'll fix hostname in next v7 release, as I'm going to refactor this part of deployer.

@joelpittet
Copy link
Contributor Author

I can work around that, thanks again for the fix

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants